CVE-2026-22701: tox-dev filelock Link Following
Vulnerability summary
CVE-2026-22701 is a medium (CVSS 5.3) Link Following vulnerability in tox-dev filelock. EPSS estimates a 0.13% chance of exploitation in the next 30 days, higher than 2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 4 · Related 5Timeline
- 10-01-2026PublishedVulnerability first disclosed.
- 12-01-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
- OSV · WolfiEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
- OSV · ChainguardEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
- NVDNIST5.3MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
EPSS trend
Probability
0.13%
Chance of exploitation in the next 30 days
Percentile
2%
Versus all other CVEs
30-day change
0.00 pp
From 0.13% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-59Improper Link Resolution Before File Access ('Link Following')The 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.
- CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
- CWE-367Time-of-check Time-of-use (TOCTOU) Race ConditionThe product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
Affected systems
Chainguard15 products
- airflow-2< 2.11.0-r21
- airflow-3< 3.1.5-r4
- awx< 24.6.1-r25
- datadog-agent-7.71-core-integrationsAll versions (No fix recorded)
- datadog-agent-7.72-core-integrationsAll versions (No fix recorded)
Wolfi5 products
- airflow-3< 3.1.5-r4
- datadog-agent-7.72-core-integrationsAll versions (No fix recorded)
- datadog-agent-7.73-core-integrations< 7.73.3-r23
- datadog-agent-7.74-core-integrations< 7.74.1-r24
- py3-cassandra-medusa< 0.27.0-r1
Suse2 products
- python-filelock&distro=SUSE Linux Enterprise Module for Development Tools 15 SP7< 3.0.12-150100.3.9.1
- python-filelock&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 3.0.12-150100.3.9.1
Debian1 product
- python-filelock< 3.9.0-1+deb12u1 | All versions (No fix recorded) | < 3.20.3-1
Opensuse1 product
- python-filelock&distro=openSUSE Tumbleweed< 3.20.3-1.1
PyPI1 product
- filelock< 3.20.3
Tox-dev1 product
- filelock< 3.20.3
Ubuntu1 product
- python-filelock< 3.0.4-1ubuntu0.1~esm1 | < 3.6.0-1ubuntu0.1~esm1 | < 3.13.1-1ubuntu0.1~esm1 | All versions (No fix recorded)
8 vendors · 27 products
References
15 links- github.com/tox-dev/filelock/security/advisories/GHSA-qmgc-5h2g-mvrwX Refsource CONFIRMWEBREPORTAdvisoryMitigationPatchVendor Advisory
- github.com/tox-dev/filelock/commit/255ed068bc85d1ef406e50a135e1459170dd1bf0X Refsource MISCWEBREPORTFIXPatch
- github.com/tox-dev/filelock/commit/41b42dd2c72aecf7da83dbda5903b8087dddc4d5X Refsource MISCWEBREPORTFIXPatch
- github.com/tox-dev/filelockPACKAGE
- pypi.org/project/filelockPACKAGE