CVE-2026-22702

Source
https://cve.org/CVERecord?id=CVE-2026-22702
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-22702.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-22702
Aliases
Downstream
Related
Published
2026-01-10T06:05:53.281Z
Modified
2026-06-18T03:57:00.797332366Z
Severity
  • 4.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
Summary
virtualenv Has TOCTOU Vulnerabilities in Directory Creation
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-362",
        "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22702.json"
}
References

Affected packages

Git / github.com/pypa/virtualenv

Affected ranges

Type
GIT
Repo
https://github.com/pypa/virtualenv
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*",
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "20.36.1"
        }
    ]
}

Affected versions

20.*
20.0.0b1
20.0.0b2
20.0.32
20.0.7
20.24.3
20.27.2
20.27.3
20.3.0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-22702.json"