CVE-2026-112940: filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files
Vulnerability summary
CVE-2026-112940 is a high (CVSS 7.1) Race Condition Enabling Link Following vulnerability in tox-dev filelock. EPSS estimates a 0.15% chance of exploitation in the next 30 days, higher than 4% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
CIRCL last checked 05-12-2026
Source freshness unavailable
How is this decided?Timeline
- 20-10-2026PublishedVulnerability first disclosed.
- 22-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- NVDNIST7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- OSV · PypiEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated7.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
EPSS trend
Probability
0.15%
Chance of exploitation in the next 30 days
Percentile
4%
Versus all other CVEs
30-day change
Decrease -0.04 pp
From 0.19% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundFilelock
Maturity: poc
Weaknesses
CWE · root cause- CWE-363Race Condition Enabling Link FollowingThe product checks the status of a file or directory before accessing it, which produces a race condition in which the file can be replaced with a link before the access is performed, causing the product to access the wrong file.
- CWE-59Improper Link Resolution Before File AccessThe product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard36 products
- airflow-2All versions (No fix recorded)
- dagsterAll versions (No fix recorded) | < 1.13.28-r1
- dagster-fipsAll versions (No fix recorded) | < 1.13.28-r1
- datahub-ingestionAll versions (No fix recorded) | < 1.8.0-r2
- datahub-ingestion-fipsAll versions (No fix recorded) | < 1.8.0-r2
Wolfi2 products
- open-webuiAll versions (No fix recorded) | < 0.12.3-r10
- py3-cassandra-medusaAll versions (No fix recorded) | < 0.31.0-r3
Debian1 product
- python-filelockAll versions (No fix recorded) | < 4.2.8-1
PyPI1 product
- filelock≥ 3.20.4, < 4.2.1
Tox-dev1 product
- filelock≥ 3.20.4, < 4.2.1
Ubuntu1 product
- python-filelockAll versions (No fix recorded)
6 vendors · 42 products
References
10 links- github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8X Refsource CONFIRMExploitMitigationPatchVendor AdvisoryREPORTWEBAdvisory
- github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2dX Refsource MISCPatchWEBFIX
- github.com/tox-dev/filelockPACKAGE