ubuntu-cve-2026-22702
Vulnerability from osv_ubuntu
Published
2026-01-10 07:16
Modified
2026-05-20 15:24
Summary
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.
Severity
4.5 (Medium)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-virtualenv",
"binary_version": "1.11.4-1ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "python-virtualenv",
"purl": "pkg:deb/ubuntu/python-virtualenv@1.11.4-1ubuntu1?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.10.1-1",
"1.11-1",
"1.11-2",
"1.11.4-1",
"1.11.4-1ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-virtualenv",
"binary_version": "15.0.1+ds-3ubuntu1.1"
},
{
"binary_name": "python3-virtualenv",
"binary_version": "15.0.1+ds-3ubuntu1.1"
},
{
"binary_name": "virtualenv",
"binary_version": "15.0.1+ds-3ubuntu1.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "python-virtualenv",
"purl": "pkg:deb/ubuntu/python-virtualenv@15.0.1+ds-3ubuntu1.1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.11.6+ds-1",
"14.0.5+ds-1",
"14.0.5+ds-2",
"14.0.5+ds-4",
"15.0.0+ds-1",
"15.0.0+ds-2",
"15.0.1+ds-1",
"15.0.1+ds-2",
"15.0.1+ds-3",
"15.0.1+ds-3ubuntu1",
"15.0.1+ds-3ubuntu1.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python-virtualenv",
"binary_version": "15.1.0+ds-1.1"
},
{
"binary_name": "python3-virtualenv",
"binary_version": "15.1.0+ds-1.1"
},
{
"binary_name": "virtualenv",
"binary_version": "15.1.0+ds-1.1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "python-virtualenv",
"purl": "pkg:deb/ubuntu/python-virtualenv@15.1.0+ds-1.1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"15.1.0+ds-1",
"15.1.0+ds-1.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-virtualenv",
"binary_version": "20.0.17-1ubuntu0.4+esm1"
},
{
"binary_name": "virtualenv",
"binary_version": "20.0.17-1ubuntu0.4+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "python-virtualenv",
"purl": "pkg:deb/ubuntu/python-virtualenv@20.0.17-1ubuntu0.4+esm1?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"15.1.0+ds-2",
"15.1.0+ds-2build1",
"15.1.0+ds-2ubuntu1",
"20.0.13-1",
"20.0.17-1",
"20.0.17-1ubuntu0.3",
"20.0.17-1ubuntu0.4",
"20.0.17-1ubuntu0.4+esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-virtualenv",
"binary_version": "20.13.0+ds-2ubuntu0.1~esm1"
},
{
"binary_name": "virtualenv",
"binary_version": "20.13.0+ds-2ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:22.04:LTS",
"name": "python-virtualenv",
"purl": "pkg:deb/ubuntu/python-virtualenv@20.13.0+ds-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20.4.6+ds-2",
"20.10.0+ds-1",
"20.12.1+ds-1",
"20.13.0+ds-1",
"20.13.0+ds-2",
"20.13.0+ds-2ubuntu0.1~esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-virtualenv",
"binary_version": "20.25.0+ds-2ubuntu0.1~esm1"
},
{
"binary_name": "virtualenv",
"binary_version": "20.25.0+ds-2ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:24.04:LTS",
"name": "python-virtualenv",
"purl": "pkg:deb/ubuntu/python-virtualenv@20.25.0+ds-2ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20.24.1+ds-1",
"20.24.6+ds-1",
"20.24.6+ds-2",
"20.25.0+ds-1",
"20.25.0+ds-2",
"20.25.0+ds-2ubuntu0.1~esm1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-virtualenv",
"binary_version": "20.31.2+ds-1"
},
{
"binary_name": "virtualenv",
"binary_version": "20.31.2+ds-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "python-virtualenv",
"purl": "pkg:deb/ubuntu/python-virtualenv@20.31.2+ds-1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20.29.1+ds-1",
"20.31.2+ds-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-virtualenv",
"binary_version": "20.36.1+ds-1"
},
{
"binary_name": "virtualenv",
"binary_version": "20.36.1+ds-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "python-virtualenv",
"purl": "pkg:deb/ubuntu/python-virtualenv@20.36.1+ds-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"20.31.2+ds-1",
"20.35.3+ds-1",
"20.35.4+ds-1",
"20.36.1+ds-1"
]
}
],
"aliases": [],
"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\u0027s app_data and lock file operations to attacker-controlled locations. This issue has been patched in version 20.36.1.",
"id": "UBUNTU-CVE-2026-22702",
"modified": "2026-05-20T15:24:37Z",
"published": "2026-01-10T07:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-22702"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-22702"
},
{
"type": "REPORT",
"url": "https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986"
},
{
"type": "REPORT",
"url": "https://github.com/pypa/virtualenv/pull/3013"
},
{
"type": "REPORT",
"url": "https://github.com/pypa/virtualenv/commit/dec4cec5d16edaf83a00a658f32d1e032661cebc"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-22702"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…