CVE-2026-144336: filelock: Crafted lock database delays free ReadWriteLock acquisition
filelock is a platform-independent file lock for Python. Prior to 4.3.0, if another local account can create or modify a SQLite lock database, loading its schema can consume CPU past the acquisition timeout even when the lock is free. Both ReadWriteLock and AsyncReadWriteLock load the schema. Tests confirmed a finite timeout overrun. 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 can exploit this issue?
An attacker needs local access to create or modify the SQLite lock database used by the application. Remote-only attackers are not described as able to exploit it.
Which lock types are affected?
Both ReadWriteLock and AsyncReadWriteLock are affected because each loads the lock database schema during acquisition.
What is the practical impact?
A crafted lock database can cause CPU consumption and delay acquisition beyond a configured finite timeout, even when the lock is free. The reported impact is availability only; no confidentiality or integrity impact is stated.
What version fixes the issue?
Upgrade filelock to version 4.3.0 or later. Versions prior to 4.3.0 are affected.