filelock: Shared-directory entries delay read-write locks beyond timeout
🔗 CVE IDs covered (1)
📋 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.
🎯 Affected products1
- pip/filelock:< 4.3.0
🔗 References (6)
- https://github.com/tox-dev/filelock/security/advisories/GHSA-5qxg-3g64-7g62
- https://nvd.nist.gov/vuln/detail/CVE-2026-144338
- https://github.com/tox-dev/filelock/pull/1096
- https://github.com/tox-dev/filelock/commit/d7324f591a2532e28427dae342d73680cc4cf6e7
- https://github.com/tox-dev/filelock/releases/tag/4.3.0
- https://github.com/advisories/GHSA-5qxg-3g64-7g62