cve.bz

CVE-2026-22701 tox-dev filelock: Link Following

5.3 mediumEPSS 0.1%Fix available

Medium (5.3) in tox-dev filelock. EPSS 0.1% estimated probability of exploitation activity in the next 30 days. Fixed in filelock 3.20.3.

On this page
filelock is a platform-independent file lock for Python. Prior to version 3.20.3, a TOCTOU race condition vulnerability exists in the SoftFileLock implementation of the filelock package. An attacker with local filesystem access and permission to create symlinks can exploit a race condition between the permission validation and file creation to cause lock operations to fail or behave unexpectedly. The vulnerability occurs in the _acquire() method between raise_on_not_writable_file() (permission check) and os.open() (file creation). During this race window, an attacker can create a symlink at the lock file path, potentially causing the lock to operate on an unintended target file or leading to denial of service. This issue has been patched in version 3.20.3.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 2nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-01-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-59 Improper Link Resolution Before File Access (Link Following)
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-22701 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-22701?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-22701?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-22701 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tox-dev:filelockbefore 3.20.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-qmgc-5h2g-mvrwPyPIfilelock<3.20.33.20.3
PYSEC-2026-1374PyPIfilelock<3.20.33.20.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-filelock3.9.0-1+deb12u1DEBIAN-CVE-2026-22701
Debian13python-filelockno fix listedDEBIAN-CVE-2026-22701
Debian14python-filelock3.20.3-1DEBIAN-CVE-2026-22701
Ubuntu25.10, 26.10python-filelockno fix listedUBUNTU-CVE-2026-22701
UbuntuPro:18.04:LTSpython-filelock3.0.4-1ubuntu0.1~esm1UBUNTU-CVE-2026-22701 USN-7999-1
UbuntuPro:20.04:LTSpython-filelock3.0.12-2ubuntu0.1~esm1USN-7999-1
UbuntuPro:22.04:LTSpython-filelock3.6.0-1ubuntu0.1~esm1UBUNTU-CVE-2026-22701 USN-7999-1
UbuntuPro:24.04:LTSpython-filelock3.13.1-1ubuntu0.1~esm1UBUNTU-CVE-2026-22701 USN-7999-1
SUSELinux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Module for Package Hub 15 SP7python-filelock3.0.12-150100.3.9.1SUSE-SU-2026:0335-1
SUSELinux Enterprise Module for Python 3 15 SP7python-filelock3.12.2-150400.10.8.1SUSE-SU-2026:0220-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-filelock3.18.0-160000.3.1SUSE-SU-2026:20216-1
openSUSELeap 15.6python-filelock3.12.2-150400.10.8.1SUSE-SU-2026:0220-1
openSUSELeap 16.0python-filelock3.18.0-160000.3.1openSUSE-SU-2026:20144-1
openSUSETumbleweedpython-filelock3.20.3-1.1openSUSE-SU-2026:10043-1
Azure Linux2python-filelockno fix listedAZL-79235
Azure Linux3python-filelock3.20.3-1AZL-74234

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Migration Toolkit for Containersrhmtc/openshift-migration-hook-runner-rhel8Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Fix deferred
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/grafana-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-cni-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-must-gather-rhel9Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-operator-bundleFix deferred
OpenShift Service Mesh 2openshift-service-mesh/istio-rhel8-operatorFix deferred
OpenShift Service Mesh 2openshift-service-mesh/pilot-rhel8Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/proxyv2-rhel9Fix deferred
OpenShift Service Mesh 2openshift-service-mesh/ratelimit-rhel8Fix deferred
Red Hat AI Inference Serverrhaiis/model-opt-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis-preview/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-cuda-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Fix deferred
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel8Fix deferred
116 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-22701.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON