ADVISORIES

Vulnerability

CVE-2026-22701

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.

47 advisories report this vulnerability, across 10 ecosystems.

Advisories

  • ALAS2023-2026-1411

    Amazon Linux 2023 - ALAS2023-2026-1411: Medium priority package update for python3.13-filelock

    Medium CVE-2025-68146CVE-2026-22701 Amazon Linux Updated 18 February 2026
  • ALAS2023-2026-1415

    Amazon Linux 2023 - ALAS2023-2026-1415: Medium priority package update for python-filelock

    Medium CVE-2025-68146CVE-2026-22701 Amazon Linux Updated 5 February 2026
  • AZL-74234

    CVE-2026-22701 affecting package python-filelock for versions less than 3.20.3-1

    CVE-2026-22701 Azure Linux Updated 21 April 2026
  • AZL-79235

    CVE-2026-22701 affecting package python-filelock 3.0.12-13

    CVE-2026-22701 Azure Linux Updated 21 April 2026
  • CGA-42xh-w948-36qx
    CVE-2026-22701 ChainguardWolfi Updated 5 November 2026
  • CGA-6fff-8786-vv3c
    CVE-2026-22701 ChainguardWolfi Updated 5 November 2026
  • CGA-6hc6-r98f-3rc9
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-6m3r-v42w-4p8q
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-9v8g-m62j-hm3w
    CVE-2026-22701 ChainguardWolfi Updated 5 November 2026
  • CGA-cgvx-92c3-5jfr
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-ff3j-j8m3-vfc2
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-fwgf-33jg-p3v3
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-g443-493q-rc8w
    CVE-2026-22701 ChainguardWolfi Updated 5 November 2026
  • CGA-g9fm-vqwm-r4qv
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-gc36-3r74-5fp8
    CVE-2026-22701 ChainguardWolfi Updated 5 November 2026
  • CGA-gh75-c4m6-2ch7
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-gj8c-wff6-46c7
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-hf8f-hfcv-rmrg
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-hg4x-rj4f-qjxc
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-hp73-2348-h3hx
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-j887-6jg3-63mh
    CVE-2026-22701 ChainguardWolfi Updated 5 November 2026
  • CGA-j9pj-r283-rr8f
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-m32w-h249-qcrh
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-mq24-vx6h-fc3c
    CVE-2026-22701 Chainguard Updated 11 September 2026
  • CGA-mqfj-fj9v-8mg5
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-rr35-g24j-fp45
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-rw4q-ph38-5g2p
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-vqvm-67mx-qmpc
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-vrhg-p6jm-v5r7
    CVE-2026-22701 ChainguardWolfi Updated 5 November 2026
  • CGA-w34p-whvh-x66v
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • CGA-wmw8-rx2w-5mw3
    CVE-2026-22701 ChainguardWolfi Updated 5 November 2026
  • CGA-xm49-7p78-c8ph
    CVE-2026-22701 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-22701

    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…

    CVE-2026-22701 Debian Updated 1 October 2026
  • GHSA-qmgc-5h2g-mvrw

    filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock

    Moderate CVE-2026-22701 PyPI Updated 10 September 2026
  • OESA-2026-1237

    python-filelock security update

    Medium CVE-2026-22701 openEuler Updated 18 August 2026
  • OESA-2026-1238

    python-filelock security update

    Medium CVE-2026-22701 openEuler Updated 18 August 2026
  • OESA-2026-1239

    python-filelock security update

    Medium CVE-2026-22701 openEuler Updated 18 August 2026
  • OESA-2026-1240

    python-filelock security update

    Medium CVE-2026-22701 openEuler Updated 18 August 2026
  • PYSEC-2026-1374

    filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock

    CVE-2026-22701 PyPI Updated 7 July 2026
  • SUSE-SU-2026:0220-1

    Security update for python-filelock

    CVE-2025-68146CVE-2026-22701 SUSEopenSUSE Updated 23 March 2026
  • SUSE-SU-2026:0335-1

    Security update for python-filelock

    CVE-2026-22701 SUSE Updated 23 March 2026
  • SUSE-SU-2026:20216-1

    Security update for python-filelock

    CVE-2025-68146CVE-2026-22701 SUSE Updated 23 March 2026
  • SUSEVEX-CVE-2026-22701

    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…

    Moderate CVE-2026-22701 SUSE Updated 16 October 2026
  • UBUNTU-CVE-2026-22701

    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…

    CVE-2026-22701 Ubuntu Updated 9 November 2026
  • USN-7999-1

    python-filelock vulnerabilities

    CVE-2025-68146CVE-2026-22701 Ubuntu Updated 27 April 2026
  • openSUSE-SU-2026:10043-1

    python311-filelock-3.20.3-1.1 on GA media

    CVE-2026-22701 openSUSE Updated 23 March 2026
  • openSUSE-SU-2026:20144-1

    Security update for python-filelock

    CVE-2025-68146CVE-2026-22701 openSUSE Updated 23 March 2026

References