CVE catalog

CVE-2026-22701

Filelock vulnerabilities

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS: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.

DistributionPackageReleaseVersionStatus
Debianpython-filelocksid4.1.1-1fixed
Debianpython-filelockforky4.1.1-1fixed
Debianpython-filelocktrixie3.18.0-1+deb13u1vulnerable
Debianpython-filelockbookworm3.9.0-1+deb12u1fixed
Ubuntupython-filelocknobleNot reportedvulnerable
Ubuntupython-filelocknoble3.13.1-1ubuntu0.1~esm1fixed
Ubuntupython3-filelocknoble3.13.1-1ubuntu0.1~esm1fixed
PyPIfilelockNot reported3.20.3fixed
Opensusepython-filelocktumbleweed3.20.3-1.1fixed
Susepython-filelocklinux enterprise module for development tools 15 sp73.0.12-150100.3.9.1fixed
Susepython-filelocklinux enterprise module for package hub 15 sp73.0.12-150100.3.9.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-filelocksourcesid3.20.3-1not yet assignedNot reported[1125190]
Debianpython-filelocksourceforky3.20.3-1not yet assignedNot reported[1125190]
Debianpython-filelocksourcetrixie(unfixed)not yet assignedNot reported[1125190]
Debianpython-filelocksourcebookworm3.9.0-1+deb12u1not yet assignedNot reported[1125190]
Ubuntupython-filelockdebnoble3.13.1-1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntupython3-filelockdebnoble3.13.1-1ubuntu0.1~esm1Not reportedNot reportedNot reported
PyPIfilelockPyPINot reported3.20.3Not reportedGHSA-QMGC-5H2G-MVRWNot reported
Opensusepython-filelockrpmtumbleweed3.20.3-1.1Not reportedOPENSUSE-SU-2026:10043-1Not reported
Susepython-filelockrpmlinux enterprise module for development tools 15 sp73.0.12-150100.3.9.1Not reportedSUSE-SU-2026:0335-1Not reported
Susepython-filelockrpmlinux enterprise module for package hub 15 sp73.0.12-150100.3.9.1Not reportedSUSE-SU-2026:0335-1Not reported

[Debian bug #1125190]

Notes

[trixie] python-filelock: Minor issue

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • Source package: [python-filelock]

    Details (2)
    • 3.18.0-1+deb13u1 · all · trixie

      Affected

      usn · python-filelock · debian · 13

    • 3.18.0-1+deb13u1 · all · trixie

      Affected

      usn · python-filelock · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-filelock]

    Details (1)
    • 3.29.7-1.1 · noarch · tumbleweed

      Unknown · Fixed: 3.20.3-1.1

      Version impact unknown

      usn · python-filelock · opensuse · tumbleweed

  • Source package: [python-filelock]

    Details (1)
    • 3.29.7-1.1 · noarch · tumbleweed

      Unknown · Fixed: 3.20.3-1.1

      Version impact unknown

      usn · python-filelock · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • Source package: [python-filelock]

    Details (2)
    • 3.9.0-1+deb12u1 · all · bookworm

      Fixed · Fixed: 3.9.0-1+deb12u1

      usn · python-filelock · debian · bookworm; usn · python-filelock · debian · 12

    • 3.9.0-1+deb12u1 · all · bookworm

      Fixed · Fixed: 3.9.0-1+deb12u1

      usn · python-filelock · debian · bookworm; usn · python-filelock · debian · 12

Observed:

References