CVE-2026-112940

7.1High

Published Oct 20, 2026 · NVD status: Modified · AI triage by gemini-3.8-flash

7.1CVSS

High

0CVSS v3.110

Attack vector
Local
Complexity
Low
Privileges
Low
User action
None
Impact
High impact on integrity, availability
Weakness
CWE-363, CWE-59

What an attacker gets

A local attacker can overwrite or delete arbitrary files, and potentially inject chosen content into files if an adjacent hot journal is writable. To exploit this, the attacker needs local system access with rename permissions in a non-sticky directory containing the lock files.

Root cause

ReadWriteLock allows SQLite to reopen database and side files by name instead of file descriptor, exposing them to symlink or rename race conditions on POSIX systems.

Affected versions

filelock 3.20.4 through versions prior to 4.2.1 on POSIX systems

CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Fix & remediation

Upgrade filelock to version 4.2.1 or newer. If you cannot patch immediately, ensure lock files reside strictly in protected directories with the sticky bit enabled or where untrusted local users lack write/rename permissions.

remediation — bash
$ pip install --upgrade 'filelock>=4.2.1'

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD description

filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock let SQLite reopen the database and side files by name; on POSIX systems an attacker with rename access in a non-sticky parent can swap those names to cause overwrite or unlink operations, while a writable adjacent hot journal is additionally required for attacker-chosen content overwrites. This issue is fixed in version 4.2.1.

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-112940

More fully triaged vulnerabilities you may want to check next.