filelock: Temporary-directory exhaustion can expose files through strict lock publication
GHSA-8f2v-28m2-26xx · CVE-2026-144388
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Impact
On Unix, temporary-directory exhaustion during filelock import can disable a safeguard in StrictSoftFileLock publication. A local account with rename access to entries in a shared, non-sticky lock directory can gain read access to a file on the same filesystem. The confirmed case involved a world-readable file whose enclosing directory prevented access.
Affected version and mitigation
The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.
An environmental failure during the capability check now preserves the runtime’s advertised support for linking without following symlinks. Filelock can refuse acquisition if the runtime cannot honor that option. Use a lock directory whose entries and ancestors other accounts cannot rename, and restrict read permission on sensitive files. Fix in PR #990.
Credits
OSS Scanner: ANT-2026-E88H6SCI.
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-8f2v-28m2-26xx
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144388
- WEB https://github.com/tox-dev/filelock/pull/990
- WEB https://github.com/tox-dev/filelock/commit/57a8d6498cfe807a6c53598e36ce29a790b8fc6b
- PACKAGE https://github.com/tox-dev/filelock
- WEB https://github.com/tox-dev/filelock/releases/tag/4.3.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes