Skip to main content
VulnerabilityPublished Updated

CVE-2026-22701: Python filelock · Prior to version 3.20.3, a TOCTOU race condition vulnerability exists in the

Affects python-filelockSource GCVE Database

0
Compare
Authoritative record:CVE-2026-22701· Medium 5.3

Not known to be exploited · CVSS 5.3 Medium · fixed in 3.0.4-1ubuntu0.1~esm1 : update python-filelock when convenient.

Data as of 9 Nov 2026, 14:21 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 3.0.4-1ubuntu0.1~esm1, 3.6.0-1ubuntu0.1~esm1, 3.13.1-1ubuntu0.1~esm1
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 9 Nov 2026.

What to do

Upgrade the Ubuntu python-filelock to 3.0.4-1ubuntu0.1~esm1 (package) or 3.6.0-1ubuntu0.1~esm1 (package) or 3.13.1-1ubuntu0.1~esm1 (package).

Affected software

ProductAffectedFixed in
Ubuntu 26.10python-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=stonkingOther threatsAffected
  • 3.20.3-1 – 3.32.2-1
4 affected builds
Fixed in–
Ubuntu 25.10python-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=questingOther threatsAffected
  • =3.18.0-1
Fixed in–
Ubuntu Pro 24.04 LTSpython-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=esm-apps/nobleOther threatsAffected
  • <3.13.1-1ubuntu0.1~esm1
Fixed in
  • 3.13.1-1ubuntu0.1~esm1
Ubuntu Pro 22.04 LTSpython-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <3.6.0-1ubuntu0.1~esm1
Fixed in
  • 3.6.0-1ubuntu0.1~esm1
Ubuntu Pro 18.04 LTSpython-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=esm-apps/bionicOther threatsAffected
  • <3.0.4-1ubuntu0.1~esm1
Fixed in
  • 3.0.4-1ubuntu0.1~esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

This vulnerability is fixed in filelock version 3.20.3 and in the corresponding patched Ubuntu package versions 3.0.4-1ubuntu0.1~esm1, 3.6.0-1ubuntu0.1~esm1, and 3.13.1-1ubuntu0.1~esm1. Users should update to these fixed versions or later. For Ubuntu users, applying the security updates via standard system update mechanisms or Ubuntu Pro with ESM Apps is recommended. No additional mitigation is required once patched.

Description

Python filelock versions prior to 3.20.3 contain a time-of-check to time-of-use (TOCTOU) race condition vulnerability in the SoftFileLock implementation. This flaw allows a local attacker with filesystem access and symlink creation permissions to exploit a race window between permission checking and file creation, potentially causing lock operations to fail or behave unexpectedly. The issue has been fixed in version 3.20.3.

References

Community reviews

Loading reviews…