CVE-2026-22701
published medium CVSS 3.1 · 5.3filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tox-dev | — | filelock< 3.20.3 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1411 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1415 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP7 | python3-filelocknoarch | Advisory build | 3.0.12-150100.3.9.1 | SUSE-SU-2026:0335-1 |
| Ubuntu | bionic | python-filelock | Advisory build | 3.0.4-1ubuntu0.1~esm1 | USN-7999-1 |
| Amazon Linux | AL2023 | python-filelocknoarch | Listed in advisory | Not stated | ALAS2023-2026-1415 |
| SUSE / openSUSE | SLE-15-SP7 | python311-filelocknoarch | Advisory build | 3.12.2-150400.10.8.1 | SUSE-SU-2026:0220-1 |
| SUSE / openSUSE | SLE-16 | python313-filelocknoarch | Advisory build | 3.18.0-160000.3.1 | SUSE-SU-2026:20216-1 |
Show 25 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-3-SP7 | python311-filelocknoarch | Advisory build | 3.12.2-150400.10.8.1 | SUSE-SU-2026:0220-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | python311-filelocknoarch | Advisory build | 3.12.2-150400.10.8.1 | SUSE-SU-2026:0220-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-filelocknoarch | Advisory build | 3.18.0-160000.3.1 | OPENSUSE-SU-2026:20144-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-filelockaarch64 | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-filelockppc64le | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-filelocks390x | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-filelockx86_64 | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-filelockaarch64 | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-filelockppc64le | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-filelocks390x | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-filelockx86_64 | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-filelockaarch64 | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-filelockppc64le | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-filelocks390x | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-filelockx86_64 | Advisory build | 3.20.3-1.1 | OPENSUSE-SU-2026:10043-1 |
| Ubuntu | bionic | python3-filelock | Advisory build | 3.0.4-1ubuntu0.1~esm1 | USN-7999-1 |
| Ubuntu | focal | python-filelock | Advisory build | 3.0.12-2ubuntu0.1~esm1 | USN-7999-1 |
| Ubuntu | focal | python3-filelock | Advisory build | 3.0.12-2ubuntu0.1~esm1 | USN-7999-1 |
| Ubuntu | jammy | python-filelock | Advisory build | 3.6.0-1ubuntu0.1~esm1 | USN-7999-1 |
| Ubuntu | jammy | python3-filelock | Advisory build | 3.6.0-1ubuntu0.1~esm1 | USN-7999-1 |
| Ubuntu | noble | python-filelock | Advisory build | 3.13.1-1ubuntu0.1~esm1 | USN-7999-1 |
| Ubuntu | noble | python3-filelock | Advisory build | 3.13.1-1ubuntu0.1~esm1 | USN-7999-1 |
| Amazon Linux | AL2023 | python-filelocksrc | Listed in advisory | Not stated | ALAS2023-2026-1415 |
| Amazon Linux | AL2023 | python3.13-filelocknoarch | Listed in advisory | Not stated | ALAS2023-2026-1411 |
| Amazon Linux | AL2023 | python3.13-filelocksrc | Listed in advisory | Not stated | ALAS2023-2026-1411 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tox-dev | filelock | < 3.20.3 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
- CWE-362 CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
- CWE-367 CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
References
3Provider assertions
2GitHub_M · cna
filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a14c76af54a20091b4a42e0d9af41bbe74d9ea40e1dda983ed72972a820ce309
- Ingested
- 23 Sep 2026, 09:05:30 UTC
- Source record
- Official CVE record