
CVE catalog
CVE-2026-22701
Filelock vulnerabilities
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.13% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-filelock | sid | 4.1.1-1 | fixed |
| Debian | python-filelock | forky | 4.1.1-1 | fixed |
| Debian | python-filelock | trixie | 3.18.0-1+deb13u1 | vulnerable |
| Debian | python-filelock | bookworm | 3.9.0-1+deb12u1 | fixed |
| Ubuntu | python-filelock | noble | Not reported | vulnerable |
| Ubuntu | python-filelock | noble | 3.13.1-1ubuntu0.1~esm1 | fixed |
| Ubuntu | python3-filelock | noble | 3.13.1-1ubuntu0.1~esm1 | fixed |
| PyPI | filelock | Not reported | 3.20.3 | fixed |
| Opensuse | python-filelock | tumbleweed | 3.20.3-1.1 | fixed |
| Suse | python-filelock | linux enterprise module for development tools 15 sp7 | 3.0.12-150100.3.9.1 | fixed |
| Suse | python-filelock | linux enterprise module for package hub 15 sp7 | 3.0.12-150100.3.9.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-filelock | source | sid | 3.20.3-1 | not yet assigned | Not reported | [1125190] |
| Debian | python-filelock | source | forky | 3.20.3-1 | not yet assigned | Not reported | [1125190] |
| Debian | python-filelock | source | trixie | (unfixed) | not yet assigned | Not reported | [1125190] |
| Debian | python-filelock | source | bookworm | 3.9.0-1+deb12u1 | not yet assigned | Not reported | [1125190] |
| Ubuntu | python-filelock | deb | noble | 3.13.1-1ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | python3-filelock | deb | noble | 3.13.1-1ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| PyPI | filelock | PyPI | Not reported | 3.20.3 | Not reported | GHSA-QMGC-5H2G-MVRW | Not reported |
| Opensuse | python-filelock | rpm | tumbleweed | 3.20.3-1.1 | Not reported | OPENSUSE-SU-2026:10043-1 | Not reported |
| Suse | python-filelock | rpm | linux enterprise module for development tools 15 sp7 | 3.0.12-150100.3.9.1 | Not reported | SUSE-SU-2026:0335-1 | Not reported |
| Suse | python-filelock | rpm | linux enterprise module for package hub 15 sp7 | 3.0.12-150100.3.9.1 | Not reported | SUSE-SU-2026:0335-1 | Not reported |
Notes
[trixie] python-filelock: Minor issue
OpenFactory catalog packages
[Debian 13 (Trixie)]
- [python3-filelock]Affected
Source package: [python-filelock]
Details (2)
3.18.0-1+deb13u1· all · trixieAffected
usn · python-filelock · debian · 13
3.18.0-1+deb13u1· all · trixieAffected
usn · python-filelock · debian · 13
[openSUSE Tumbleweed]
- [python313-filelock]Unknown
Source package: [python-filelock]
Details (1)
3.29.7-1.1· noarch · tumbleweedUnknown · Fixed:
3.20.3-1.1Version impact unknown
usn · python-filelock · opensuse · tumbleweed
- [python314-filelock]Unknown
Source package: [python-filelock]
Details (1)
3.29.7-1.1· noarch · tumbleweedUnknown · Fixed:
3.20.3-1.1Version impact unknown
usn · python-filelock · opensuse · tumbleweed
[Debian 12 (Bookworm)]
- [python3-filelock]Fixed
Source package: [python-filelock]
Details (2)
3.9.0-1+deb12u1· all · bookwormFixed · Fixed:
3.9.0-1+deb12u1usn · python-filelock · debian · bookworm; usn · python-filelock · debian · 12
3.9.0-1+deb12u1· all · bookwormFixed · Fixed:
3.9.0-1+deb12u1usn · python-filelock · debian · bookworm; usn · python-filelock · debian · 12
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-22701]
- [https://osv.dev/vulnerability/GHSA-qmgc-5h2g-mvrw]
- [https://osv.dev/vulnerability/SUSE-SU-2026:0335-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:10043-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-22701]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22701.json]
- [https://ubuntu.com/security/notices/USN-7999-1]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]