Security Resilience

CVE-2026-112938

Race Condition in tox-dev filelock

Published
05 November 2026
Modified
09 November 2026
CVSS Score v3.1 5.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H
EPSS Score 0.0011 0.4th percentile
Risk Priority 41 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-112938 is a medium-severity Race Condition Enabling Link Following (CWE-363) vulnerability in tox-dev filelock (named in the CVE record; NVD lists no product yet). Its CVSS base score is 5.8 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 0.4th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

filelock is a platform-independent file lock for Python. From 3.30.0 until 4.2.1, On POSIX platforms, StrictSoftFileLock and AsyncStrictSoftFileLock validate the coordination directory in _ensure_protocol_directory but later reach the claims directory through _open_directory by pathname, allowing a local account that can…

more

rename the coordination name to swap in a symbolic link between check and use during acquisition. That race can create and leave claim files in another writable directory or strand claims in a different strict lock so the second lock times out. Separately, the claims property and force_break follow a resting symbolic link without a race when the lock user inspects or recovers the lock. Claims inspection discloses a file name to the other account only if the resulting exception text or claim_name reaches that account through a shared log, CI output, or error report. A blind force_break recovery that removes live claims from another strict lock can allow two processes into that lock's critical section; this path reaches other strict locks, not arbitrary files. This issue is fixed in version 4.2.1.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-62596Shared CWE-363
CVE-2025-62161Shared CWE-363
CVE-2024-45310Shared CWE-363
CVE-2025-52565Shared CWE-363
CVE-2025-52881Shared CWE-363
CVE-2025-31133Shared CWE-363
CVE-2026-112940Shared CWE-363
CVE-2026-112914Shared CWE-363
CVE-2024-27102Shared CWE-363

Affected Assets

tox-dev
filelock
named in the CVE record; NVD lists no product yet

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V15.4.2

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

AC-3 enforces access decisions at the moment of use, limiting damage when a replaced link causes access to an unintended object.

SA-8 mandates security engineering principles that include atomic operations and safe file handling, preventing introduction of check-then-use race conditions.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly prevent TOCTOU race conditions such as link-following by requiring atomic operations and safe file handling.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect link-following races, but testing alone does not prevent the weakness.

prevents

Secure coding standards directly address TOCTOU and link-following vulnerabilities, covering most of the weakness while the control also covers many other issues.

prevents

A.8.30 carries its effect through the secure-development practices (8.25–8.29) its contract requires of the supplier, so a TOCTOU/link-following defect in delivered code is reduced the way those practices reduce ordinary code defects; the clause sits at its declared ceiling of `partial` because the effect depends on the supplier's implementation of secure coding guidance.

References