Technical impact
The vulnerability lies in the way StrictSoftFileLock and AsyncStrictSoftFileLock create coordination and claim directories without applying the caller’s restrictive lock mode, a weakness that falls under the CWE-279 and CWE-732 categories of improper authorization and permissive permissions. On POSIX systems a permissive umask or inherited default ACL can leave these directories writable by another local user, allowing that user to delete an active holder’s claims. The deleted or altered claims enable the other user to acquire the lock while the original holder continues to run in its critical section, effectively bypassing the lock mechanism. An attacker can also plant malformed claims to prevent acquisition by the legitimate owner, potentially disrupting processes or facilitating unauthorized execution within the critical region.
Affected Systems
The issue affects the filelock library published by tox-dev, specifically all releases from version 3.30.0 through 4.2.0; the fix is introduced in version 4.2.1.
Risk and Exploitability
The CVSS score of 5.3 indicates moderate severity, and no EPSS information is available. The vulnerability is not listed in the CISA KEV catalog. The attack is local; any user or process that can write to the lock directories can exploit it. The exploit path is straightforward—delete or tamper with the lock claim directories—so an experienced local attacker can bypass the lock quickly, leading to race conditions and potential integrity violations.
Github GHSA