Skip to content
OpenAdvisories
Medium · 5.0 CVE-2022-25328 EUVD-2022-1242GHSA-wxjg-p59j-6c92

Privilege escalation through command injection in fscrypt

Published Feb 25, 2022 · Updated Apr 21, 2025 · 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

Affected products

VendorProductAffectedFixed
Google fscrypt unspecified – ≤ 0.3.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 fscrypt 0.3.3-1 —
Debian 13 fscrypt 0.3.3-1 —
Debian 12 fscrypt 0.3.3-1 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed fscrypt 0.3.3-1.1 openSUSE-SU-2024:11902-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/google/fscrypt < 0.3.3 0.3.3 GHSA-wxjg-p59j-6c92

Advisories 1

References