filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse
- CVE-2026-144386
- GHSA-x3f4-g3q6-f985
- EUVD-2026-143602
Summary
The filelock Python library, before version 4.3.0, has a flaw in SoftReadWriteLock. Its heartbeat can overwrite the beginning of an unrelated file with holder-record data. Exploitation requires a shared directory where another account can rename entries, and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. The issue is fixed in version 4.3.0. The CVSS score is 2.5, and the vulnerability is not listed in the CISA known exploited vulnerabilities catalog.
AI summary · verify against the vendor advisory
Description
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.
Text from the CVE.org record.
Recommendation
filelock
- If you run a version before 4.3.0update to 4.3.0 or laterfilelock 4.3.0 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
tox-dev filelock
Affected versions Fixed in < 4.3.0 none stated filelockPyPI
Affected versions Fixed in before 4.3.0 4.3.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.