CVE Explorer
CVE-2026-22702
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-362","description":"CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"product":"virtualenv","vendor":"pypa","versions":[{"status":"affected","version":"< 20.36.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"LOW","baseScore":4.5,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-362","description":"CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/problemTypes/1/descriptions/0
Source references
3 source assertions{"name":"https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc","tags":["x_refsource_MISC"],"url":"https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/references/2
{"name":"https://github.com/pypa/virtualenv/pull/3013","tags":["x_refsource_MISC"],"url":"https://github.com/pypa/virtualenv/pull/3013"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/references/1
{"name":"https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986","tags":["x_refsource_CONFIRM"],"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cbc59bb72e3af90cc7672f18f408f1f9b14ae4c212a214b88d41c4be50758cb0 · sha256:18bf932f63b956a0… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.