CVE-2022-25326: Uncontrolled Resource Consumption in github.com/google/fscrypt
Summary
CVE-2022-25326: Uncontrolled Resource Consumption 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-25326 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 set of tools for managing Linux filesystem encryption. It allows users to encrypt and decrypt files and directories using the Linux kernel's filesystem-level encryption feature. This package is widely used in various applications and systems that require file encryption. However, versions up to 0.3.2 of fscrypt suffer from a vulnerability that can lead to uncontrolled resource consumption.
Vulnerability Detail
The vulnerability in fscrypt versions up to 0.3.2 arises from the creation of a world-writable directory by default when setting up a filesystem. This directory can be exploited by unprivileged users to exhaust the filesystem space, potentially causing denial-of-service conditions. The issue can be mitigated by upgrading to fscrypt version 0.3.3 or above and adjusting the permissions on existing fscrypt metadata directories where applicable.
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 available for this vulnerability. Upgrading to fscrypt version 0.3.3 or above is the recommended solution.
Conclusion
The vulnerability in github.com/google/fscrypt versions up to 0.3.2 can lead to uncontrolled resource consumption. It is crucial to upgrade to version 0.3.3 or above and adjust permissions on existing fscrypt metadata directories to mitigate the risk. For further assistance and support in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/google/fscrypt →
FAQ
fscrypt is a Go package that provides tools for managing Linux filesystem encryption.
The vulnerability allows unprivileged users to exhaust filesystem space, potentially leading to denial-of-service conditions.
Upgrade fscrypt to version 0.3.3 or above and adjust permissions on existing fscrypt metadata directories.
No, upgrading to the fixed version is the recommended solution.
Yes, the CVSS score for this vulnerability is 5.5.
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/google/fscrypt.