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
-
ALAS2023-2026-1415
Amazon Linux 2023 - ALAS2023-2026-1415: Medium priority package update for python-filelock
-
AZL-74234
CVE-2026-22701 affecting package python-filelock for versions less than 3.20.3-1
-
AZL-79235
CVE-2026-22701 affecting package python-filelock 3.0.12-13
- CGA-42xh-w948-36qx
- CGA-6fff-8786-vv3c
- CGA-6hc6-r98f-3rc9
- CGA-6m3r-v42w-4p8q
- CGA-9v8g-m62j-hm3w
- CGA-cgvx-92c3-5jfr
- CGA-ff3j-j8m3-vfc2
- CGA-fwgf-33jg-p3v3
- CGA-g443-493q-rc8w
- CGA-g9fm-vqwm-r4qv
- CGA-gc36-3r74-5fp8
- CGA-gh75-c4m6-2ch7
- CGA-gj8c-wff6-46c7
- CGA-hf8f-hfcv-rmrg
- CGA-hg4x-rj4f-qjxc
- CGA-hp73-2348-h3hx
- CGA-j887-6jg3-63mh
- CGA-j9pj-r283-rr8f
- CGA-m32w-h249-qcrh
- CGA-mq24-vx6h-fc3c
- CGA-mqfj-fj9v-8mg5
- CGA-rr35-g24j-fp45
- CGA-rw4q-ph38-5g2p
- CGA-vqvm-67mx-qmpc
- CGA-vrhg-p6jm-v5r7
- CGA-w34p-whvh-x66v
- CGA-wmw8-rx2w-5mw3
- CGA-xm49-7p78-c8ph
-
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…
-
GHSA-qmgc-5h2g-mvrw
filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock
-
OESA-2026-1237
python-filelock security update
-
OESA-2026-1238
python-filelock security update
-
OESA-2026-1239
python-filelock security update
-
OESA-2026-1240
python-filelock security update
-
PYSEC-2026-1374
filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock
-
SUSE-SU-2026:0220-1
Security update for python-filelock
-
SUSE-SU-2026:0335-1
Security update for python-filelock
-
SUSE-SU-2026:20216-1
Security update for python-filelock
-
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…
-
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…
-
USN-7999-1
python-filelock vulnerabilities
-
openSUSE-SU-2026:10043-1
python311-filelock-3.20.3-1.1 on GA media
-
openSUSE-SU-2026:20144-1
Security update for python-filelock