← Vulnerabilities

MediumAdvisoryPython

filelock: ReadWriteLock can overwrite victim-owned files through a directory swap

Affected

PackageAffected versionsFixed in
pip:filelock< 4.3.04.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. Affected version and mitigation The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later. Filelock now creates the final database link inside a f…

Read on GitHub Advisory Database

On 12/05/2026, 07:19 AM, GitHub Advisory Database published "filelock: ReadWriteLock can overwrite victim-owned files through a directory swap" (type: Advisory). Severity is "Medium" (medium). Related technologies: Python. CVE: CVE-2026-144395.