CVE-2026-144392: filelock: Read-only oplock can hold strict lock acquisition past its timeout
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on Windows, a local account with read access to an idle StrictSoftFileLock sentinel can delay acquisition beyond the requested timeout. A Windows opportunistic lock (oplock) on the sentinel can keep the caller’s thread waiting inside the operating system, including during a nonblocking acquisition. 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
Which environments are exposed?
The issue affects filelock versions before 4.3.0 on Windows, specifically when StrictSoftFileLock is used with an idle sentinel that a local account can read.
What access does an attacker need?
An attacker needs local access on the Windows system and read access to the idle StrictSoftFileLock sentinel. They can use a Windows opportunistic lock on that sentinel to delay lock acquisition.
Does this affect nonblocking lock acquisition?
Yes. The caller’s thread can remain blocked inside the operating system even when the acquisition was requested as nonblocking, and may exceed the requested timeout.
What should be done if immediate remediation is needed?
Upgrade filelock to version 4.3.0. Until then, restrict local read access to idle StrictSoftFileLock sentinel files where possible.