CVE-2026-144386: filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse
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
filelockto a version that resolves this vulnerability.Fixed in 4.3.0
Event History
Frequently Asked Questions
Which deployments are realistically exposed?
Deployments using filelock before 4.3.0 are exposed only where SoftReadWriteLock uses a shared directory in which another account can rename entries and the underlying filesystem reuses inode numbers. The overwrite was confirmed on ext4.
What access does an attacker need?
An attacker needs access to the shared directory sufficient to rename entries. Exploitation also depends on inode-number reuse by the filesystem and the SoftReadWriteLock heartbeat acting on the reused inode.
Is a default installation affected?
The issue is configuration-dependent rather than affecting every installation: it requires SoftReadWriteLock, a shared directory writable or mutable by another account, and a filesystem that reuses inode numbers.
What should be done if upgrading is not immediately possible?
Restrict the lock directory so other accounts cannot rename its entries, or move lock files to a directory not shared with untrusted accounts. Upgrade filelock to 4.3.0 when possible.