CVE-2026-22701
Last modified
CVE-2026-22701 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 0.11% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Tox-Dev | Filelock | < 3.20.3 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-22701?
How severe is CVE-2026-22701?
How do I fix CVE-2026-22701?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-22695LIBPNG is a reference library for use in applications that r…7.1
- CVE-2026-22696dcap-qvl implements the quote verification logic for DCAP (D…9.3
- CVE-2026-22697CryptoLib provides a software-only solution using the CCSDS …7.5
- CVE-2026-22698RustCrypto: Elliptic Curves is general purpose Elliptic Curv…7.5
- CVE-2026-22699RustCrypto: Elliptic Curves is general purpose Elliptic Curv…7.5
- CVE-2026-22700RustCrypto: Elliptic Curves is general purpose Elliptic Curv…7.5
- CVE-2026-22702virtualenv is a tool for creating isolated virtual python en…4.5
- CVE-2026-22703Cosign provides code signing and transparency for containers…5.5
- CVE-2026-22704HAX CMS helps manage microsite universe with PHP or NodeJs b…5.4
- CVE-2026-22705RustCrypto: Signatures offers support for digital signatures…6.4
- CVE-2026-22706Strapi is an open source headless content management system.…6.5
- CVE-2026-22707Strapi is an open source headless content management system.…5.4
Are you affected by CVE-2026-22701?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
