AZL-118777: CVE-2026-144386 affecting package python-filelock 3.20.3-4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. 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
Which environments are realistically exposed to this issue?
Exposure requires a shared directory in which another account can rename directory entries, plus a filesystem that reuses inode numbers. The overwrite has been confirmed on ext4.
What does an attacker need to do to trigger the overwrite?
An attacker needs access to rename entries in the shared directory. Under the required inode-reuse conditions, the SoftReadWriteLock heartbeat can then write holder-record data at the start of an unrelated file.
Are affected installations protected by default?
The issue depends on a specific deployment condition: use of SoftReadWriteLock in a shared directory where another account can rename entries. The available information does not establish whether that configuration is enabled by default.
What version fixes the issue?
The issue is fixed in filelock version 4.3.0. The affected package version identified here is python-filelock 3.20.3-4.