AZL-118783: CVE-2026-144388 affecting package python-filelock 3.20.3-4
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
python-filelockto a version that resolves this vulnerability.Fixed in 4.3.0
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Unix systems using StrictSoftFileLock with lock files in a shared, non-sticky directory are exposed when another local account can rename entries in that directory. The issue concerns files on the same filesystem, including the confirmed case of a world-readable file whose parent directory blocks access.
What must an attacker be able to do?
The attacker needs a local account and rename access to entries in the shared non-sticky lock directory. Exploitation also depends on temporary-directory exhaustion occurring during filelock import, which disables the relevant publication safeguard.
Are default deployments affected?
The provided information does not establish whether the vulnerable lock-directory arrangement is the default. Exposure depends on using Unix, StrictSoftFileLock, and a shared non-sticky lock directory where another local account has rename access.
How can I mitigate the issue before upgrading?
Avoid shared non-sticky lock directories and ensure untrusted local accounts cannot rename lock-directory entries. Upgrading to filelock version 4.3.0 addresses the issue.