{"vuln_id":"CVE-2026-113717","aliases":["GHSA-cx28-75q4-x26q"],"description":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInvoke.get_pip_install_cmd() handles --seeder pip --download by calling get_wheel(download=False) and then allowing pip to consult the configured index, bypassing virtualenv's download_wheel() and verify_wheel_digest() path. When virtualenv's default-index PyPI digest comparison remains enabled, an index candidate matching the bundled package and version can therefore be selected without comparison to PyPI SHA-256 metadata. Explicit custom-index settings already opt out of that comparison and remain outside this verification-bypass claim; the demonstrated configuration used a non-PyPI index while leaving the index environment variables unset so the comparison policy remained active. This condition does not independently defeat TLS or establish control of the index response. This issue is fixed in version 21.14.9.","published_at":"2026-10-20T20:17:18.017000Z","modified_at":"2026-11-21T19:00:07.403698Z","first_seen_at":"2026-11-21T19:15:47.056167Z","severity":"low","severity_source":"nvd","cvss_score":2.3,"cvss_vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-494"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00208,"epss_percentile":0.10907,"nvd_status":"Analyzed","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-113717"},"matched_alias":null,"items":[{"id":10749,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-cx28-75q4-x26q: virtualenv: Pip seeding with download omits wheel digest verification","summary":"virtualenv: Pip seeding with download omits wheel digest verification\n\n## Summary\n\nThe pip seeder acquires bundled wheels with download=False and lets pip access the index when --download is selected.\nIndex candidates on that path do not pass through virtualenv's wheel digest verification.\n\nAnthropic's OSS Scanner reported this as `ANT-2026-74ALJBUF` in `virtualenv-20261015-005`, received on 15 October 2026.\n\n## Affected area\n\nWheel selection by the pip seeder when downloads are enabled.\n\n## Attacker-controlled input\n\nThe pip seeder and download option must be selected. The finding concerns the default-index digest-verification policy.\nExplicit custom-index settings already opt out of comparison against PyPI metadata; this patch retains that policy.\n\n## Affected code\n\nThe relevant 21.14.8 source is in\n[pip seeder](https://github.com/pypa/virtualenv/blob/a795ab116356afde11039cf2763d77e8a06da738/src/virtualenv/seed/embed/pip_invoke.py).\n\n## Mechanism\n\nWith `--seeder pip --download`, `PipInvoke.get_pip_install_cmd()` first calls `get_wheel(download=False)`, so\nvirtualenv's `download_wheel()` and `verify_wheel_digest()` are skipped. It then lets `pip install` consult the\nconfigured index. An index wheel with the same package and version as the bundled wheel can be selected without\nvirtualenv comparing its SHA-256 with PyPI metadata. The default app-data seeder takes the verification path for the\nsame option.\n\n## Reproduction and evidence\n\nThe scanner built a local index named in `pip.conf` that served a modified copy of the bundled pip wheel under the same\nfilename. In the control run, `virtualenv --download env-default` rejected the wheel with a digest mismatch. In the\nsecond run, adding `--seeder pip` produced an environment whose installed `pip/__init__.py` matched the index wheel;\n`env-pip/bin/pip --version` ran the added line. The reproducer checked the installed bytes and marker before reporting\n`BUG`.\n\nBoth `--seeder pip` and `--download` are needed. The report used a non-PyPI index from `pip.conf` and left\n`PIP_INDEX_URL`, `PIP_EXTRA_INDEX_URL`, and `PIP_INDEX` unset, so virtualenv's default-seeder PyPI comparison remained\nactive. This does not establish index control in the default PyPI setup. The unchecked pip-seeder download path is\nolder, while the comparison with the default seeder arose when digest verification was added in 21.7.12.\n[PR #3430](https://github.com/pypa/virtualenv/pull/3430) acquires and verifies selected wheels before invoking pip with\nindex lookup disabled.\n\n## Attack sequence\n\n```mermaid\nsequenceDiagram\n    participant I as Index in pip.conf\n    participant V as virtualenv PipInvoke\n    participant P as pip install\n    participant E as Seeded environment\n    I->>V: serve modified pip wheel\n    V->>V: get_wheel(download=False)\n    V->>P: install with --download permitting index lookup\n    P->>I: select same-version index wheel\n    I->>E: modified pip installed without virtualenv digest check\n    E->>E: later pip invocation runs added code\n    Note over V,E: Default app-data seeder rejects t\n\nAffected: PyPI:virtualenv\n\nFixed in: 21.14.9\n\nReferences:\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-cx28-75q4-x26q\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-113717\nhttps://github.com/pypa/virtualenv/pull/3430\nhttps://github.com/pypa/virtualenv/commit/7babec66e043e1cc8bc66869a063653898719d96\nhttps://github.com/pypa/virtualenv\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.9","url":"https://osv.dev/vulnerability/GHSA-cx28-75q4-x26q","published_at":"2026-10-23T22:26:04Z","updated_at":"2026-11-18T12:11:02.020890Z","fetched_at":"2026-11-21T19:15:55.946149Z","severity":"high","cvss_score":8.8,"epss":0.00208,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"virtualenv","vuln_id":"CVE-2026-113717","vuln_ids":["CVE-2026-113717","BIT-VIRTUALENV-2026-113717","GHSA-CX28-75Q4-X26Q","PYSEC-2026-4376"],"tags":["osv","pypi","fix-available"],"cluster_id":4097,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10749","html":"https://vulnwatch.ve1ve2.com/item/10749"}},{"id":11338,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-113717: virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInvoke.get_pip_install_cmd() handles --seeder pip --download by ca…","summary":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInvoke.get_pip_install_cmd() handles --seeder pip --download by calling get_wheel(download=False) and then allowing pip to consult the configured index, bypassing virtualenv's download_wheel() and verify_wheel_digest() path. When virtualenv's default-index PyPI digest comparison remains enabled, an index candidate matching the bundled package and version can therefore be selected without comparison to PyPI SHA-256 metadata. Explicit custom-index settings already opt out of that comparison and remain outside this verification-bypass claim; the demonstrated configuration used a non-PyPI index while leaving the index environment variables unset so the comparison policy remained active. This condition does not independently defeat TLS or establish control of the index response. This issue is fixed in version 21.14.9.\n\nAffected: Debian:12:python-virtualenv, Debian:13:python-virtualenv, Debian:14:python-virtualenv\n\nFixed in: 21.15.6+ds-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-113717","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-113717","published_at":"2026-10-20T20:17:18.017000Z","updated_at":"2026-11-21T19:00:07.403698Z","fetched_at":"2026-11-21T19:23:21.853713Z","severity":"high","cvss_score":8.8,"epss":0.00208,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"debian","product":"12:python-virtualenv","vuln_id":"CVE-2026-113717","vuln_ids":["CVE-2026-113717","DEBIAN-CVE-2026-113717","GHSA-CX28-75Q4-X26Q"],"tags":["osv","debian","fix-available"],"cluster_id":4096,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11338","html":"https://vulnwatch.ve1ve2.com/item/11338"}},{"id":10750,"source":{"id":"osv","name":"OSV.dev"},"title":"PYSEC-2026-4376: virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInvoke.get_pip_install_cmd() handles --seeder pip --download by ca…","summary":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInvoke.get_pip_install_cmd() handles --seeder pip --download by calling get_wheel(download=False) and then allowing pip to consult the configured index, bypassing virtualenv's download_wheel() and verify_wheel_digest() path. When virtualenv's default-index PyPI digest comparison remains enabled, an index candidate matching the bundled package and version can therefore be selected without comparison to PyPI SHA-256 metadata. Explicit custom-index settings already opt out of that comparison and remain outside this verification-bypass claim; the demonstrated configuration used a non-PyPI index while leaving the index environment variables unset so the comparison policy remained active. This condition does not independently defeat TLS or establish control of the index response. This issue is fixed in version 21.14.9.\n\nAffected: PyPI:virtualenv\n\nFixed in: 21.14.9\n\nReferences:\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.9\nhttps://github.com/pypa/virtualenv/commit/7babec66e043e1cc8bc66869a063653898719d96\nhttps://github.com/pypa/virtualenv/pull/3430\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-cx28-75q4-x26q","url":"https://osv.dev/vulnerability/PYSEC-2026-4376","published_at":"2026-10-20T20:17:18.017000Z","updated_at":"2026-11-18T12:11:02.020890Z","fetched_at":"2026-11-21T19:15:55.946150Z","severity":"high","cvss_score":8.8,"epss":0.00208,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"virtualenv","vuln_id":"CVE-2026-113717","vuln_ids":["CVE-2026-113717","BIT-VIRTUALENV-2026-113717","GHSA-CX28-75Q4-X26Q","PYSEC-2026-4376"],"tags":["osv","pypi","fix-available"],"cluster_id":4096,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10750","html":"https://vulnwatch.ve1ve2.com/item/10750"}},{"id":3761,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-113717: virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInvoke.get_pip_install_cmd() handles --seeder pip --download by ca…","summary":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, PipInvoke.get_pip_install_cmd() handles --seeder pip --download by calling get_wheel(download=False) and then allowing pip to consult the configured index, bypassing virtualenv's download_wheel() and verify_wheel_digest() path. When virtualenv's default-index PyPI digest comparison remains enabled, an index candidate matching the bundled package and version can therefore be selected without comparison to PyPI SHA-256 metadata. Explicit custom-index settings already opt out of that comparison and remain outside this verification-bypass claim; the demonstrated configuration used a non-PyPI index while leaving the index environment variables unset so the comparison policy remained active. This condition does not independently defeat TLS or establish control of the index response. This issue is fixed in version 21.14.9.\n\nReferences:\nhttps://github.com/pypa/virtualenv/commit/7babec66e043e1cc8bc66869a063653898719d96\nhttps://github.com/pypa/virtualenv/pull/3430\nhttps://github.com/pypa/virtualenv/releases/tag/21.14.9\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-cx28-75q4-x26q\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-cx28-75q4-x26q","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113717","published_at":"2026-10-20T20:17:18.017000Z","updated_at":"2026-11-17T20:28:46.020000Z","fetched_at":"2026-11-21T19:15:31.479286Z","severity":"high","cvss_score":8.8,"epss":0.00208,"is_kev":false,"has_exploit":true,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-113717","vuln_ids":["CVE-2026-113717","GHSA-CX28-75Q4-X26Q"],"tags":["CWE-494"],"cluster_id":4096,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3761","html":"https://vulnwatch.ve1ve2.com/item/3761"}}]}