CVE-2026-144341: filelock: Readable database oplock delays async cancellation on Windows
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on Windows, another local account with read access to a SQLite lock database can delay cancellation of an AsyncReadWriteLock acquisition. The task and application shutdown can wait past the task deadline, up to the lock's own timeout. Older databases and deliberately shared databases may grant the necessary access. The delay is caused by a Windows opportunistic lock (oplock). This issue is fixed in version 4.3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
filelockto a version that resolves this vulnerability.Fixed in 4.3.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects filelock versions before 4.3.0 running on Windows when an AsyncReadWriteLock uses a SQLite lock database that another local account can read. Older databases and databases deliberately shared between accounts may have the required access permissions.
What does an attacker need to do to trigger the delay?
The attacker needs local access on the Windows system and read access to the SQLite lock database. They can use that access to cause a Windows opportunistic lock condition that delays cancellation of an AsyncReadWriteLock acquisition.
What is the operational impact?
A task cancellation and application shutdown may continue waiting beyond the task deadline, potentially until the lock's configured timeout expires. The provided data describes an availability delay only, with no confidentiality or integrity impact.
What should be done if an immediate upgrade is not possible?
Restrict read access to the SQLite lock database so that other local accounts cannot access it, and avoid deliberately sharing the database. This reduces exposure to the local attacker condition described.
How can I remediate the issue?
Upgrade filelock to version 4.3.0 or later. The issue is fixed in 4.3.0.