filelock: ReadWriteLock can overwrite victim-owned files through a directory swap
- CVE-2026-144395
- GHSA-22wc-j8c9-7gxg
- EUVD-2026-143615
Summary
The filelock Python library, prior to version 4.3.0, has a flaw on POSIX systems in its SQLite-backed ReadWriteLock. An account with rename access in a shared, non-sticky lock directory can redirect a lock operation so that it targets a file writable by the locking process, allowing cross-account overwrites. The issue was confirmed on Linux. Exploitation also required a victim-owned directory that the other account could previously read. The CVSS score is 4.4. The record states the issue is fixed in version 4.3.0, and it 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, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. 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.