filelock: Strict soft lock can chmod unrelated directory
GHSA-gqj6-5294-r46r · CVE-2026-144381
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
In a group-writable directory without the sticky bit, StrictSoftFileLock can mistake an unrelated directory owned by the locking account for its coordination directory. It can change that directory's permissions and create a claims directory inside it, disrupting access for other users.
Affected versions and fix
The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. The lock checks the claims directory and its entries before changing permissions. PR #978
Workaround
Use a trusted parent directory where other accounts cannot rename entries.
Credits
Reported by OSS Scanner (ANT-2026-8ERL4V7J).
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-gqj6-5294-r46r
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144381
- WEB https://github.com/tox-dev/filelock/pull/978
- WEB https://github.com/tox-dev/filelock/commit/f028e2bea5e8c45c47b30a9c33ec38b015d5da22
- 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