CVE-2026-22701: Python filelock · Prior to version 3.20.3, a TOCTOU race condition vulnerability exists in the
Affects python-filelockSource GCVE Database
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
- 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:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10python-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 25.10python-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTSpython-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in
|
Ubuntu Pro 22.04 LTSpython-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=esm-apps/jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSpython-filelockpkg:deb/ubuntu/python-filelock?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
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
- ubuntu.com/security/CVE-2026-22701 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-22701 (opens in a new tab)
- github.com/tox-dev/filelock/security/advisories/GHSA-qmgc-5h2g-mvrw (opens in a new tab)
- github.com/tox-dev/filelock/commit/255ed068bc85d1ef406e50a135e1459170dd1bf0 (opens in a new tab)
- github.com/tox-dev/filelock/commit/41b42dd2c72aecf7da83dbda5903b8087dddc4d5 (opens in a new tab)
- ubuntu.com/security/notices/USN-7999-1 (opens in a new tab)