Technical impact
The vulnerability in filelock allows a WindowsFileLock file created with mode 0o600 to inherit the parent directory's ACL instead of creating an owner‑only security descriptor. This oversight means that other local accounts with inherited directory access can read the lock holder metadata, modify the SQLite database used by ReadWriteLock, or take the byte‑range lock after it is released, potentially delaying future lock acquisitions. While the mutual exclusion semantics remain intact, the lack of proper permission enforcement permits local privilege escalation and data exposure within an affected Python environment.
Affected Systems
The issue affects the tox‑dev:filelock library for Python versions 3.10.0 through 4.2.1, specifically the WindowsFileLock implementation and the ReadWriteLock SQLite database. UnixFileLock is unaffected. The vulnerability was addressed in filelock 4.2.1; earlier releases remain vulnerable.
Risk and Exploitability
With a CVSS score of 5.3 the vulnerability is of medium severity. No EPSS score is available, and it is not listed in the CISA KEV catalog, indicating limited publicly known exploits as of now. The attack vector is local: an attacker must already have a local account with inherited directory access. The vulnerability does not lead to remote code execution or bypass of authentication, but it does enable lateral access to lock metadata and potential disruption of lock coordination.
Github GHSA