PatchSiren cyber security CVE debrief
CVE-2026-112940 tox-dev CVE debrief
CVE-2026-112940 is a high-severity vulnerability in the filelock library, which affects local users who can create or rename entries in a directory. The vulnerability allows an attacker to make the lock user's process overwrite or unlink its own files. This vulnerability is particularly concerning because it can be exploited by creating or renaming entries in the directory holding the lock database, which is often a shared or group-writable cache, build, or project directory without the sticky bit. As a result, defenders responsible for securing the filelock library and ensuring the security of the directory holding the lock database should be aware of this vulnerability and take a
- Vendor
- tox-dev
- Product
- filelock
- CVSS
- HIGH 7.1
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-10-23
- Original CVE updated
- 2026-10-23
- Advisory published
- 2026-10-23
- Advisory updated
- 2026-10-23
Who should care
Defenders responsible for securing the filelock library and ensuring the security of the directory holding the lock database should be aware of this vulnerability. This includes operators, platform administrators, vulnerability management teams, and security teams who need to verify the integrity of the filelock library and ensure that the directory holding the lock database is secure. Additionally, defenders should prioritize verifying the integrity of
Why it matters
CVE-2026-112940 is a high-severity vulnerability in the filelock library that allows local users to overwrite or unlink files owned by the lock user. Defenders should prioritize verifying the integrity of the filelock library and ensuring the security of the directory holding the lock database.
- Local users may be able to overwrite or unlink files owned by the lock user
- The vulnerability requires local access to the system
- The vulnerability can be exploited by creating or renaming entries in the directory holding the lock database
Technical summary
The filelock library is vulnerable to a high-severity attack due to its use of SQLite. The ReadWriteLock and AsyncReadWriteLock hand SQLite a name they do not control, allowing a local user to create or rename entries in the directory holding the lock database to make the lock user's process overwrite or unlink its own files. On Linux, the lock validates its database through a descriptor, then connects SQLite to /proc/self/fd/<n>, a Linux path that names the process's own open file n. SQLite turns that path back into a plain path and reopens it by name, following symlinks. This allows another local user who can create or rename entries in the directory that holds the lock database to turn this against the user
Defensive priority
Defenders should prioritize verifying the integrity of the filelock library and ensuring that the directory holding the lock database is secure.
Recommended defensive actions
- Verify the integrity of the filelock library
- Ensure the directory holding the lock database is secure
- Review and update the filelock library to version 4.2.1 or later
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
Evidence notes
The vulnerability is caused by the ReadWriteLock and AsyncReadWriteLock handing SQLite a name they do not control. On Linux, the lock validates its database through a descriptor, then connects SQLite to /proc/self/fd/<n>, a Linux path that names the process's own open file n. SQLite turns that path back into a plain path and reopens it by name, following symlinks.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-112940 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-112940
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-112940 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-112940
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journa
Unverified legacy reference
URL: https://storage.googleapis.com/osv-vulnerabilities/PyPI/GHSA-v4x8-3wr5-3wq8.json
osv_dev
-
Source reference
Unverified legacy reference
URL: https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/tox-dev/filelock/pull/834
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/tox-dev/filelock
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/tox-dev/filelock/releases/tag/4.2.1
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.