CVE-2026-144340: filelock: Untrusted lock waits can stall release of private async locks
filelock is a platform-independent file lock for Python. Prior to 4.3.0, concurrent AsyncSoftReadWriteLock waits could occupy every worker in the default executor and delay the release of an unrelated private lock in the same process. This requires enough simultaneous waits and a workload that uses lock paths another account can influence, such as a group-writable, non-sticky directory. 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 deployments are realistically exposed?
Deployments using filelock versions before 4.3.0 are exposed when concurrent AsyncSoftReadWriteLock waits can be triggered on lock paths influenced by another account. An example is a group-writable directory without the sticky bit.
What does an attacker need to cause impact?
The attacker needs the ability to influence lock paths and to create enough simultaneous lock waits to occupy every worker in the process's default executor. The resulting impact is delayed release of an unrelated private lock in the same process.
Are default deployments affected?
The issue depends on a workload using attacker-influenced lock paths and enough concurrent waits to exhaust the default executor. The provided information does not establish that ordinary default lock-path configurations meet those conditions.
What is the remediation?
Upgrade filelock to version 4.3.0 or later. If an immediate upgrade is not possible, avoid using lock paths that another account can influence, including group-writable non-sticky directories.