5.3

CVE-2026-22701: filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock

Analyzed
AliasesSUSE-SU-2026:0335-1GHSA-qmgc-5h2g-mvrwPYSEC-2026-1374
Published 10-01-2026Last modified 12-01-2026

Vulnerability summary

CVE-2026-22701 is a medium (CVSS 5.3) vulnerability in tox-dev filelock. EPSS estimates a 0.13% chance of exploitation in the next 30 days, higher than 2.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.3, local access); no exploitation reported by the 5 checked sources

CIRCL last checked 05-12-2026

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.13%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 5

Timeline

  1. 10-01-2026
    PublishedVulnerability first disclosed.
  2. 12-01-2026
    Last 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

EPSS trend

Probability

0.13%

Chance of exploitation in the next 30 days

Percentile

2%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.13% on 05-11-2026

05-11-202605-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

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
Ubuntu1 product
  • python-filelockAll versions (No fix recorded) | < 3.0.4-1ubuntu0.1~esm1 | < 3.6.0-1ubuntu0.1~esm1 | < 3.13.1-1ubuntu0.1~esm1

8 vendors · 27 products

References

15 links
Show all 15 references