CVE-2022-25326: Uncontrolled Resource Consumption in github.com/google/fscrypt

github.com/google/fscrypt Updated 02 Oct 2025

Summary

26/02/2022
Yes i
Moderate
5.5

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

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.

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/google/fscrypt.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback