CVE-2026-22702
Last modified
CVE-2026-22702 is a medium-severity vulnerability rated 4.5/10 on the CVSS scale. virtualenv is a tool for creating isolated virtual python environments. Prior to version 20.36.1, TOCTOU (Time-of-Check-Time-of-Use) vulnerabilities in virtualenv allow local attackers to perform symlink-based attacks on directory creation operations. EPSS estimates a 0.08% chance of exploitation in the next 30 days.
Description
virtualenv is a tool for creating isolated virtual python environments. Prior to version 20.36.1, TOCTOU (Time-of-Check-Time-of-Use) vulnerabilities in virtualenv allow local attackers to perform symlink-based attacks on directory creation operations. An attacker with local access can exploit a race condition between directory existence checks and creation to redirect virtualenv's app_data and lock file operations to attacker-controlled locations. This issue has been patched in version 20.36.1.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Virtualenv | Virtualenv | < 20.36.1 |
References
- https://github.com/pypa/virtualenv/pull/3013Issue Tracking, Patch
- https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986Mitigation, Patch, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-22702?
How severe is CVE-2026-22702?
How do I fix CVE-2026-22702?
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-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-22701filelock is a platform-independent file lock for Python. Pri…5.3
- 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
- CVE-2026-22708Cursor is a code editor built for programming with AI. Prior…9.8
Are you affected by CVE-2026-22702?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
