CVE-2026-144338: filelock: Shared-directory entries delay read-write locks beyond timeout
filelock is a platform-independent file lock for Python. Prior to 4.3.0, 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. This issue is fixed in version 4.3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.0
Event History
Frequently Asked Questions
Who is exposed to this issue?
POSIX deployments using filelock versions earlier than 4.3.0 are exposed when another account has write access to the parent directory of the SQLite lock database. The affected behavior involves ReadWriteLock and AsyncReadWriteLock.
What does an attacker need to do to trigger the problem?
The attacker needs write access to the parent directory containing the SQLite lock database. They can create shared-directory entries that cause lock initialization or acquisition to exceed its requested timeout, including when the lock is otherwise free.
Are asynchronous applications affected differently?
AsyncReadWriteLock uses the same backend, and its initialization occurs on the event-loop thread. A deliberately slow initialization can therefore delay other tasks running on that event loop.
What is the remediation?
Upgrade filelock to version 4.3.0, which fixes the issue. If upgrading is not immediately possible, restrict write access to the parent directory of the SQLite lock database to trusted accounts.