CVE-2026-112941: tox-dev filelock · Time-of-check Time-of-use (TOCTOU) Race Condition
Affects tox-dev filelockSource CVE Database V5
Not known to be exploited · CVSS 3.3 Low : upgrade to 4.2.1 when convenient.
Data as of 4 Dec 2026, 18:36 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 3.3 |
|---|
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 5% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.2.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Upgrade tox-dev filelock to 4.2.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| tox-devfilelock | Affected
| Fixed in
|
PyPIfilelockpkg:pypi/filelockOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to filelock version 4.2.1 or later, where this TOCTOU race condition vulnerability is fixed. No other mitigation is necessary as the issue is resolved in the official patch.
Description
CVE-2026-112941 is a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the tox-dev filelock Python package. Versions from 4.1.0 up to but not including 4.2.1 are affected. The issue involves SoftReadWriteLock and AsyncSoftReadWriteLock caching a successful check of the lock tree path and resolving its names again later, allowing a local attacker to replace the lock tree after initial acquisition and redirect lock-record writes to directories writable by the lock user. This vulnerability is fixed in version 4.2.1.
References
- github.com/tox-dev/filelock/security/advisories/GHSA-wfhq-q4j2-c37m (opens in a new tab)
- github.com/tox-dev/filelock/pull/842 (opens in a new tab)
- github.com/tox-dev/filelock/commit/bfa066d65a1ba9106f86ee9d027f7588b9c77e03 (opens in a new tab)
- github.com/tox-dev/filelock/releases/tag/4.2.1 (opens in a new tab)