filelock: Untrusted lock waits can stall release of private async locks
GHSA-c7vg-7rqj-fjhq · CVE-2026-144340
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
Concurrent AsyncSoftReadWriteLock waits could occupy every worker in the default executor and delay the release of an unrelated private lock in the same process. This requires enough simultaneous waits and a workload that uses lock paths another account can influence, such as a group-writable, non-sticky directory.
Affected versions and mitigation
Confirmed affected: = 4.2.12. Upgrade to 4.3.0.
Each soft reader/writer wrapper now has a worker of its own by default. If the application supplies a shared executor, keep a worker available for releases. Limit concurrent waits and keep lock directories private or use appropriately protected sticky directories. Fix in PR #1073
Credits
Scan filelock-20261116-009; finding ANT-2026-O69ASZD0.
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-c7vg-7rqj-fjhq
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144340
- WEB https://github.com/tox-dev/filelock/pull/1073
- WEB https://github.com/tox-dev/filelock/commit/80485f8e43c13bc7f84bbdbd4b58d4b227ddb7de
- 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