{"schemaVersion":3,"id":"CVE-2022-25328","aliases":["UBUNTU-CVE-2022-25328","DEBIAN-CVE-2022-25328","GHSA-wxjg-p59j-6c92"],"status":"published","duplicateOf":null,"title":null,"description":"The bash_completion script for fscrypt allows injection of commands via crafted mountpoint paths, allowing privilege escalation under a specific set of circumstances. A local user who has control over mountpoint paths could potentially escalate their privileges if they create a malicious mountpoint path and if the system administrator happens to be using the fscrypt bash completion script to complete mountpoint paths. We recommend upgrading to version 0.3.3 or above","dates":{"published":"2022-02-25T11:00:15.758Z","modified":"2025-04-21T13:56:13.459Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","exploitability":3.3,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.3,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","exploitability":3.3,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.2,"severity":"high","vector":"AV:L/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00202,"percentile":0.09534,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00202},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00202,"percentile":0.09534}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00202,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00202,"percentile":0.09534}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"}],"affected":[{"vendor":"debian","product":"fscrypt","name":"fscrypt","label":"fscrypt","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/fscrypt","purlType":"deb","versions":[{"text":"< 0.3.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.3-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"fscrypt","name":"fscrypt","label":"fscrypt","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/fscrypt","purlType":"deb","versions":[{"text":"< 0.3.3-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.3-1","eol":null,"hubHref":null},{"vendor":"github.com/google","product":"fscrypt","name":"github.com/google/fscrypt","label":"fscrypt","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/google/fscrypt","purlType":"golang","versions":[{"text":"< 0.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.3","eol":null,"hubHref":null},{"vendor":"google llc","product":"fscrypt","name":"fscrypt","label":"fscrypt","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ 0.3.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, ≤ 0.3.2","eol":null,"hubHref":"/vendor/google_llc/fscrypt"},{"vendor":"google","product":"fscrypt","name":"fscrypt","label":"fscrypt","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.3.3","eol":null,"hubHref":"/vendor/google/fscrypt"}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/google/fscrypt/pull/346","label":"github.com/google/fscrypt/pull/346","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-25328","label":"ubuntu.com/security/CVE-2022-25328","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.openwall.com/lists/oss-security/2022/02/24/1","label":"www.openwall.com/lists/oss-security/2022/02/24/1","hostname":"www.openwall.com","tags":["REPORT"]},{"url":"https://github.com/google/fscrypt/commit/fa1a1fdbdea65829ce24a6b6f86ce2961e465b02","label":"github.com/google/fscrypt/commit/fa1a1fdbdea65829ce24a6b6f86ce2961e465b02","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-25328","label":"www.cve.org/CVERecord?id=CVE-2022-25328","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-25328","label":"security-tracker.debian.org/tracker/CVE-2022-25328","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25328","label":"nvd.nist.gov/vuln/detail/CVE-2022-25328","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/google/fscrypt","label":"github.com/google/fscrypt","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2024:11902-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11902-1"]},"timeline":[{"kind":"published","date":"2022-02-25T11:00:15.758Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-21T13:56:13.459Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T04:39:55.868Z","stale":false,"partial":false}}