filelock: SoftReadWriteLock admits overlapping writers through a moved writable tree
GHSA-jw9g-h6rh-jp8v · CVE-2026-144393
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 POSIX, SoftReadWriteLock can accept a protocol directory whose owner it trusts but whose permissions allow another account to write. In a shared sticky lock location, an account with control over such a directory can cause two processes to hold write locks concurrently without a compromise notification.
Affected version and mitigation
The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.
Filelock now checks the ownership and permissions of every protocol directory against the sticky lock parent and rejects unsafe trees. Use a private lock directory. If an unsafe tree already exists, stop all clients before removing it and letting filelock recreate it. Fix in PR #988.
Credits
OSS Scanner: ANT-2026-UHV8G0TA.
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-jw9g-h6rh-jp8v
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144393
- WEB https://github.com/tox-dev/filelock/pull/988
- WEB https://github.com/tox-dev/filelock/commit/45ad9959a4ab8b78fc701db9b4947517f54fb232
- 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