{"id":"CVE-2026-102930","aliases":["CVE-2026-102930","GHSA-94p9-xgh2-xp45","BIT-VIRTUALENV-2026-102930","PYSEC-2026-4011"],"related":[],"kind":"vulnerability","state":"published","title":"virtualenv: Downloaded seed wheels (pip/setuptools) are not integrity-checked before use","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"`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.\n\nA 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.\n\nFixed 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","format":"markdown","source":"ghsa"},{"lang":"en","text":"`download_wheel()` runs `pip download` and hands the result straight to the\nseeder, with nothing checking the bytes it gets back. The embedded pip and\nsetuptools wheels carry a `BUNDLE_SHA256` that virtualenv checks on every load,\nbut a wheel fetched over the network for the periodic-update feature or the\n`--download` flag had no equivalent verification.\n\nA compromised index, a stale mirror, or a MITM'd download (when TLS is\nintercepted, e.g. via a misconfigured or malicious CA) could substitute a\ndifferent wheel under the same distribution/version/filename, and virtualenv\nwould cache and seed it into every environment created afterward with no\nwarning.\n\nFixed in 21.7.12 by computing the downloaded wheel's sha256 and comparing it\nagainst the digest PyPI's public JSON API reports for that exact release,\nindependent of which index actually served the file. The check is skipped, not\ntreated as failure, when a custom index (`PIP_INDEX_URL`,\n`PIP_EXTRA_INDEX_URL`, `PIP_INDEX`) is configured, since a private index can\nlegitimately serve a different, intentionally rebuilt wheel.","format":"markdown","source":"pysec"}],"published":"2026-09-18T01:41:45.000Z","modified":"2026-11-27T06:45:50.837Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-494"],"affected":[{"ranges":[{"version":"< 21.7.12","status":"affected"}],"vendor":"pypa","product":"virtualenv","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"21.7.12"}],"ecosystem":"PyPI","package":"virtualenv","purl":"pkg:pypi/virtualenv","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"21.7.12"}],"vendor":"virtualenv","product":"virtualenv","cpe":"cpe:2.3:a:virtualenv:virtualenv:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"21.7.12"}],"ecosystem":"PyPI","package":"virtualenv","purl":"pkg:pypi/virtualenv","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"21.7.12"}],"ecosystem":"Bitnami","package":"virtualenv","purl":"pkg:bitnami/virtualenv","source":"bitnami"}],"references":[{"url":"https://github.com/pypa/virtualenv/security/advisories/GHSA-94p9-xgh2-xp45","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/pypa/virtualenv/pull/3251","tags":["fix","issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://github.com/pypa/virtualenv/commit/a01ed3e2f239d6ab1fce62c5c7664ccf268fff6d","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102930","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/virtualenv/PYSEC-2026-4011.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/virtualenv","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/virtualenv/releases/tag/21.7.12","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/virtualenv","tags":["package","web"],"sources":["ghsa","pysec"]}],"credits":["Bernát Gábor"],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-09-30T14:02:14.766Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-102930","url":"https://www.cve.org/CVERecord?id=CVE-2026-102930","licence":"CVE Terms of Use","modified":"2026-09-30T14:02:24.390Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-94p9-xgh2-xp45","url":"https://github.com/advisories/GHSA-94p9-xgh2-xp45","licence":"CC-BY-4.0","modified":"2026-10-06T15:26:06.490Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-102930","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102930","licence":"Public domain","modified":"2026-11-19T19:27:14.617Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4011","url":"https://osv.dev/vulnerability/PYSEC-2026-4011","licence":"CC-BY-4.0","modified":"2026-10-06T15:26:06.490Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-VIRTUALENV-2026-102930","url":"https://osv.dev/vulnerability/BIT-VIRTUALENV-2026-102930","licence":"Apache-2.0","modified":"2026-11-27T06:45:50.837Z"}],"updatedAt":"2026-11-27T07:07:32.505Z","epss":{"score":0.00226,"percentile":0.14232,"date":"2026-12-01T12:00:22.000Z"}}