CVE-2022-25327: User login denial of service in github.com/google/fscrypt
Summary
CVE-2022-25327: User login denial of service in github.com/google/fscrypt. Affects github.com/google/fscrypt versions < 0.3.3. Fixed in 0.3.3. How to fix ↓
Also tracked for
- fscrypt · Debian:11
The same CVE-2022-25327 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
github.com/google/fscrypt is a Go package that provides a PAM module for file system encryption. It allows users to encrypt their files and directories on Linux systems. The package is widely used for securing sensitive data on Linux systems.
Vulnerability Detail
The PAM module for fscrypt doesn't adequately validate fscrypt metadata files, allowing users to create malicious metadata files that prevent other users from logging in. This vulnerability can be exploited by a local user to cause a denial of service by creating a fscrypt metadata file that prevents other users from logging into the system. The vulnerability has a CVSS score of 5.5, indicating a moderate severity level. It was published on February 26, 2022, and has been reviewed by GitHub on March 1, 2022. The Common Weakness Enumeration (CWE) ID associated with this vulnerability is CWE-276.
How To Fix
Latest published version: v0.3.7 as of 22 Oct 2026
go get github.com/google/fscrypt@v0.3.7
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.3.3
This is the first release that contains the fix.
go get github.com/google/fscrypt@v0.3.3
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The github.com/google/fscrypt package is vulnerable to a user login denial of service vulnerability. To mitigate this vulnerability, it is recommended to upgrade to version 0.3.3 or above. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for github.com/google/fscrypt →
FAQ
The impact of this vulnerability is a denial of service, as it allows a local user to prevent other users from logging into the system.
Any system that uses the github.com/google/fscrypt package and has not upgraded to version 0.3.3 or above is affected by this vulnerability.
There is no known exploit for this vulnerability at the moment.
The only mitigation for this vulnerability is to upgrade to version 0.3.3 or above of the github.com/google/fscrypt package.
For more information about this vulnerability, you can refer to the GitHub Advisory Database entry: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-8vwm-8vj8-rqjf/GHSA-8vwm-8vj8-rqjf.json
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/google/fscrypt.