7.7high
virtualenv: Downloaded seed wheels (pip/setuptools) are not integrity-checked before use
- Severity
- 7.7high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.23% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-94p9-xgh2-xp45BIT-VIRTUALENV-2026-102930PYSEC-2026-4011
Description
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, download_wheel() accepts pip and setuptools seed wheels fetched for periodic updates or the --download option without checking their bytes against an authoritative digest equivalent to the embedded wheels' BUNDLE_SHA256 verification. A compromised index, stale mirror, or intercepted TLS connection can substitute a different wheel under the requested distribution, version, and filename, after which virtualenv caches and seeds the attacker-controlled wheel into subsequently created environments. The verification applies to the default PyPI path and is intentionally skipped when PIP_INDEX_URL, PIP_EXTRA_INDEX_URL, or PIP_INDEX configures a custom index that may legitimately publish rebuilt wheels. This issue is fixed in version 21.7.12.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| pypa virtualenv | < 21.7.12 | CVE List |
| virtualenv (PyPI) | before 21.7.12 | GitHub Advisory Database, PyPA Advisory Database |
| virtualenv virtualenv | before 21.7.12 | NVD |
| virtualenv (Bitnami) | before 21.7.12 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 7.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, download_wheel() accepts pip and setuptools seed wheels fetched for periodic updates or the --download option without checking their bytes against an authoritative digest equivalent to the embedded wheels' BUNDLE_SHA256 verification. A compromised index, stale mirror, or intercepted TLS connection can substitute a different wheel under the requested distribution, version, and filename, after which virtualenv caches and seeds the attacker-controlled wheel into subsequently created environments. The verification applies to the default PyPI path and is intentionally skipped when PIP_INDEX_URL, PIP_EXTRA_INDEX_URL, or PIP_INDEX configures a custom index that may legitimately publish rebuilt wheels. This issue is fixed in version 21.7.12.
GitHub Advisory Database
download_wheel() runs pip download and hands the result straight to the seeder, with nothing checking the bytes it gets back. The embedded pip and setuptools wheels carry a BUNDLE_SHA256 that virtualenv checks on every load, but a wheel fetched over the network for the periodic-update feature or the --download flag had no equivalent verification.
A compromised index, a stale mirror, or a MITM'd download (when TLS is intercepted, e.g. via a misconfigured or malicious CA) could substitute a different wheel under the same distribution/version/filename, and virtualenv would cache and seed it into every environment created afterward with no warning.
Fixed by computing the downloaded wheel's sha256 and comparing it against the digest PyPI's public JSON API reports for that exact release, independent of which index actually served the file. The check is skipped, not treated as failure, when a custom index (PIP_INDEX_URL, PIP_EXTRA_INDEX_URL, PIP_INDEX) is configured, since a private index can legitimately serve a different, intentionally rebuilt wheel. Fix: https://github.com/pypa/virtualenv/pull/3251
PyPA Advisory Database
download_wheel() runs pip download and hands the result straight to the
seeder, with nothing checking the bytes it gets back. The embedded pip and
setuptools wheels carry a BUNDLE_SHA256 that virtualenv checks on every load,
but a wheel fetched over the network for the periodic-update feature or the
--download flag had no equivalent verification.
A compromised index, a stale mirror, or a MITM'd download (when TLS is intercepted, e.g. via a misconfigured or malicious CA) could substitute a different wheel under the same distribution/version/filename, and virtualenv would cache and seed it into every environment created afterward with no warning.
Fixed in 21.7.12 by computing the downloaded wheel's sha256 and comparing it
against the digest PyPI's public JSON API reports for that exact release,
independent of which index actually served the file. The check is skipped, not
treated as failure, when a custom index (PIP_INDEX_URL,
PIP_EXTRA_INDEX_URL, PIP_INDEX) is configured, since a private index can
legitimately serve a different, intentionally rebuilt wheel.
References
| https://github.com/pypa/virtualenv/security/advisories/GHSA-94p9-xgh2-xp45 | advisory, patch, vendor-advisory, web | |
| https://github.com/pypa/virtualenv/pull/3251 | fix, issue-tracking, patch, web | |
| https://github.com/pypa/virtualenv/commit/a01ed3e2f239d6ab1fce62c5c7664ccf268fff6d | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-102930 | advisory, web | |
| https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2026-4011.yaml | web | |
| https://github.com/pypa/virtualenv | package | |
| https://github.com/pypa/virtualenv/releases/tag/21.7.12 | web | |
| https://pypi.org/project/virtualenv | package, web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-102930 changed 2026-09-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-94p9-xgh2-xp45 changed 2026-10-06 | CC-BY-4.0 |
| NVD | CVE-2026-102930 changed 2026-11-19 | Public domain |
| PyPA Advisory Database | PYSEC-2026-4011 changed 2026-10-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-VIRTUALENV-2026-102930 changed 2026-11-27 | Apache-2.0 |