CVE-2026-112913

filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database

Published Nov 5, 2026 CVSS 3.1 · 3.3 Low EPSS < 1% KEV · Not listed
Description
filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock and AsyncReadWriteLock on Windows use _connect to attach SQLite to the lock database by pathname, allowing another local account that can create adjacent names to place a database-wal or database-journal side file before acquisition. An undeletable WAL file makes each read or write acquisition fail immediately with sqlite3.OperationalError regardless of timeout. Separately, when the database contains at least one table, a hot journal that grants the lock account modify rights can cause SQLite recovery to delete a file named by that journal only when the lock account has permission to delete the target. The issue requires a directory writable by another account, such as a shared Windows temporary directory, and does not affect private directories. This issue is fixed in version 4.2.1.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade tox-dev:filelock to version 4.2.1 or later, which implements the fix for the SQLite side‑file injection issue.
  • Restrict the directory used for the lock database so that only the account running the application can write files there; avoid using shared Windows temporary directories or other locations writable by other local accounts.
  • If an immediate upgrade is not possible, move the lock database to a private directory and ensure that no other user can create adjacent files; consider using an alternative file‑locking implementation as a temporary measure.

Generated by OpenCVE AI on November 6, 2026 at 13:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9vhv-jxww-xfm5 filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Tox-dev
Tox-dev filelock
Vendors & Products Tox-dev
Tox-dev filelock
Type Values Removed Values Added
Description filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock and AsyncReadWriteLock on Windows use _connect to attach SQLite to the lock database by pathname, allowing another local account that can create adjacent names to place a database-wal or database-journal side file before acquisition. An undeletable WAL file makes each read or write acquisition fail immediately with sqlite3.OperationalError regardless of timeout. Separately, when the database contains at least one table, a hot journal that grants the lock account modify rights can cause SQLite recovery to delete a file named by that journal only when the lock account has permission to delete the target. The issue requires a directory writable by another account, such as a shared Windows temporary directory, and does not affect private directories. This issue is fixed in version 4.2.1.
Title filelock: ReadWriteLock on Windows acts on SQLite side files another local user places beside its database
Weaknesses CWE-367
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

  • CWE-412

    Unrestricted Externally Accessible Lock

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 6, 2026, 5:37 PM
Reserved
Oct 19, 2026, 8:16 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 10:17 PM
Modified
Nov 6, 2026, 9:40 PM
Severity
Low
Public date
Nov 5, 2026, 9:48 PM