CVE-2022-25328 Privilege escalation through command injection in fscrypt
Local attackers can escalate privileges via command injection in fscrypt's bash completion script if administrators use it on malicious mountpoints.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-25328?
CVE-2022-25328 is a medium-severity command injection vulnerability in Google LLC fscrypt, published on 25 Feb 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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
Weakness: CWE-78
Which versions are affected by CVE-2022-25328?
2 open source packages ship an affected version, including github.com/google/fscrypt. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/google/fscrypt Go | All versions | 0.3.3 |
github.com/google/fscrypt Go | All versions | 0.3.3 |
Products include Google Fscrypt.
How do I fix CVE-2022-25328?
Upgrade github.com/google/fscrypt to 0.3.3 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-25328 being exploited?
There is no known exploitation of CVE-2022-25328 in the wild and no public exploit code.
Other vulnerabilities in Google LLC fscrypt
Sources
Also known as DEBIAN-CVE-2022-25328, GHSA-wxjg-p59j-6c92.