Technical impact
filelock, a platform-independent file lock library for Python, has a flaw in its Windows implementation of ReadWriteLock and AsyncReadWriteLock. The library attaches the lock database through its pathname using SQLite’s _connect method, which allows a local user to place adjacent SQLite side files such as –wal or –journal before the lock is acquired. An undeletable WAL file causes the next lock acquisition to fail immediately with sqlite3.OperationalError, halting all read or write operations. In addition, if the database contains at least one table, a hot journal that grants modify rights can trigger SQLite recovery to delete a file named by the journal, but only when the attacker has permission to delete the target. The result is a denial of service that can also unintentionally delete files, affecting the integrity of the filesystem. This weakness is not limited to any specific database content; it occurs whenever the lock database resides in a directory writable by other local accounts.
Affected Systems
The vulnerability applies to the tox-dev:filelock library on Windows platforms. Versions from 3.20.4 up through 4.2.1 are affected; the fix is included in version 4.2.1 and all later releases. The issue does not affect Linux or macOS, nor does it impact private directories that are not writable by other local accounts.
Risk and Exploitability
The CVSS score of 3.3 indicates low severity, and the EPSS score is not available, showing no widely reported exploitation. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a local user who has write access to the same directory as the lock database, such as a shared Windows temporary directory. An attacker can create a malicious side file next to the lock database and cause the library to fail when acquiring the lock, thereby disrupting the application’s runtime. Because the exploit requires local access and no network component, the scope is limited to the host system but can impact all processes that rely on the affected lock.
Github GHSA