CVE-2026-144388: filelock: Temporary-directory exhaustion can expose files through strict lock publication
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on Unix, temporary-directory exhaustion during filelock import can disable a safeguard in StrictSoftFileLock publication. A local account with rename access to entries in a shared, non-sticky lock directory can gain read access to a file on the same filesystem. The confirmed case involved a world-readable file whose enclosing directory prevented access. 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?
Affected deployments are Unix systems using filelock before version 4.3.0 where locks are published in a shared, non-sticky directory. The disclosed case requires the target file to be on the same filesystem and world-readable, while its enclosing directory restricts access.
What access does an attacker need?
The attacker must already have a local account and be able to rename entries in the shared lock directory. Exploitation also depends on temporary-directory exhaustion occurring during filelock import.
What is the security impact?
The impact is limited to unauthorized read access to a file under the described conditions. The supplied vector indicates no integrity or availability impact.
How can this be remediated?
Upgrade filelock to version 4.3.0 or later, which fixes the issue.