# CVE-2022-25328: Privilege escalation through command injection in fscrypt

- Severity: Medium 5.0 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-02)
- Published: 2022-02-25T11:00:15.758Z
- Modified: 2026-06-17T04:33:24.297Z
- Also known as: GHSA-wxjg-p59j-6c92
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Google

## 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

(As written by CVE List.)

## Affected

- Google LLC fscrypt: from unspecified up to 0.3.2
- github.com/google/fscrypt (Go): before 0.3.3
- google fscrypt: before 0.3.3

## Every score

- Google: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.2 High `AV:L/AC:L/Au:N/C:C/I:C/A:C`

## References

- <https://github.com/google/fscrypt/pull/346> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25328> (advisory)
- <https://github.com/google/fscrypt> (web)

## Sources

- CVE List: [CVE-2022-25328](https://www.cve.org/CVERecord?id=CVE-2022-25328), CVE Terms of Use, modified 2025-04-21
- GitHub Advisory Database: [GHSA-wxjg-p59j-6c92](https://github.com/advisories/GHSA-wxjg-p59j-6c92), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-25328](https://nvd.nist.gov/vuln/detail/CVE-2022-25328), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25328 · Whole record: https://cve.day/CVE-2022-25328.json · Rebuilt by cve.day 2026-11-25T22:58:09.842Z
