filelock: Shared-directory entries delay read-write locks beyond timeout
GHSA-5qxg-3g64-7g62 · CVE-2026-144338
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, another account with write access to the parent directory of a SQLite lock database can make ReadWriteLock initialization and acquisition run past their requested timeout, even when the lock is free. AsyncReadWriteLock constructs the same backend on the event-loop thread, so a slow initialization can also delay other tasks.
Affected versions and mitigation
Confirmed affected: = 4.2.12. Upgrade to 4.3.0.
Dead-holder cleanup now checks a 50 ms budget between directory entries and can resume on a later connection. An individual filesystem operation can exceed that budget, and unvisited links can remain. Keep the database in a directory writable only by trusted accounts. A sticky bit still permits new directory entries. Fix in PR #1096
Credits
November 18, 2026 filelock security review: ANT-2026-W2TXGKZX.
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-5qxg-3g64-7g62
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144338
- WEB https://github.com/tox-dev/filelock/pull/1096
- WEB https://github.com/tox-dev/filelock/commit/d7324f591a2532e28427dae342d73680cc4cf6e7
- 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