{"vuln_id":"GHSA-494p-63j8-28p3","aliases":["CVE-2026-113714"],"description":"virtualenv: Downloaded wheel selection and caching precede verification","published_at":"2026-10-20T19:17:34.050000Z","modified_at":"2026-11-18T12:10:49.565642Z","first_seen_at":"2026-11-21T19:15:47.051430Z","severity":"high","severity_source":"cvss","cvss_score":7.5,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","cwe":["CWE-354"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-494p-63j8-28p3"},"matched_alias":null,"items":[{"id":10761,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-494p-63j8-28p3: virtualenv: Downloaded wheel selection and caching precede verification","summary":"virtualenv: Downloaded wheel selection and caching precede verification\n\n## Summary\n\nWheel downloads go directly into the reusable wheelhouse, while the verification target is selected from pip's textual\noutput. A verification failure does not remove the downloaded file from that cache.\n\nAnthropic's OSS Scanner reported this as `ANT-2026-ST00DRO3` in `virtualenv-20261015-005`, received on 15 October 2026.\n\n## Affected area\n\nDownload selection and promotion into the reusable wheel cache.\n\n## Attacker-controlled input\n\nA download must fail verification, or the archive selected from pip output must differ from the file later reused.\nDefault-index digest verification must be enabled. Existing custom-index exceptions are outside the promised PyPI\ncomparison.\n\n## Affected code\n\nThe relevant 21.14.8 source is in\n[wheel download and digest check](https://github.com/pypa/virtualenv/blob/a795ab116356afde11039cf2763d77e8a06da738/src/virtualenv/seed/wheels/acquire.py).\n\n## Mechanism\n\n`download_wheel()` tells pip to write directly into the reusable `wheel/house` cache. It then selects a path to hash\nfrom the first `Saved ` line in pip's stdout, rather than from the file pip actually placed there. A package index can\ninject such a line through a discarded link's `data-requires-python` attribute. A separate failure exists without the\nforged line: a digest mismatch raises after the downloaded wheel has entered the cache, and the rejected bytes remain\nthere. Later wheel selection does not hash the cached file again.\n\n## Reproduction and evidence\n\nThe scanner used a local index configured in `pip.conf`, with PyPI digest comparison still enabled. In the control case\nit served a modified pip wheel alone. `virtualenv --upgrade-embed-wheels` refused the mismatch, and a subsequent\nenvironment used the bundled pip. In the attack case the index added a link whose `data-requires-python` contained a\nforged `Saved\n` line pointing at a genuine bundled wheel. The upgrade then exited without a digest error, recorded\nthe modified wheel in its update log, and a later environment's `pip --version` ran a line added by the index. The\nreproduction used a known absolute path to the genuine bundled wheel; that prerequisite is part of this variant.\n\nThe report also shows that a refused wheel can replace a previously accepted file of the same name in `wheel/house`,\nleaving rejected bytes available for later use. It does not claim to bypass TLS or affect the default PyPI setup. The\ngap follows the digest check added in #3251, first released in 21.7.12.\n[PR #3430](https://github.com/pypa/virtualenv/pull/3430) downloads to a private temporary directory, verifies the actual\narchive, and promotes it only after acceptance.\n\n## Attack sequence\n\n```mermaid\nsequenceDiagram\nparticipant I as Configured index\nparticipant P as pip download\nparticipant C as wheel/house cache\nparticipant V as virtualenv digest check\nparticipant N as New environment\nI->>P: modified wheel and forged Saved line\nP->>C: write modified wheel directly\nP-->>V:\n\nAffected: PyPI:virtualenv\n\nFixed in: 21.14.9\n\nReferences:\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-494p-63j8-28p3\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-113714\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-494p-63j8-28p3","published_at":"2026-10-23T22:25:22Z","updated_at":"2026-11-18T12:10:49.565642Z","fetched_at":"2026-11-21T19:15:55.946158Z","severity":"high","cvss_score":7.5,"epss":0.00206,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"virtualenv","vuln_id":"CVE-2026-113714","vuln_ids":["CVE-2026-113714","BIT-VIRTUALENV-2026-113714","GHSA-494P-63J8-28P3","PYSEC-2026-4373"],"tags":["osv","pypi","fix-available"],"cluster_id":4091,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10761","html":"https://vulnwatch.ve1ve2.com/item/10761"}},{"id":10762,"source":{"id":"osv","name":"OSV.dev"},"title":"PYSEC-2026-4373: virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, download_wheel() writes package-index downloads directly into the reu…","summary":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, download_wheel() writes package-index downloads directly into the reusable wheel/house cache before selecting a verification target from pip's textual Saved output. With default-index digest comparison enabled, a controlled package index can inject a misleading Saved line through a discarded link's data-requires-python attribute; this forged-line variant also requires knowledge of an absolute path to the genuine bundled wheel. The wrong path can then be hashed, while a digest mismatch leaves the rejected archive in the cache for later selection without verification. A separate rejected-cache-file variant requires control over downloaded data or archive selection but not the forged-line prerequisites. Explicit custom-index exceptions are outside the promised PyPI comparison, and the issue does not independently bypass TLS or establish control of default PyPI. 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-494p-63j8-28p3","url":"https://osv.dev/vulnerability/PYSEC-2026-4373","published_at":"2026-10-20T19:17:34.050000Z","updated_at":"2026-11-18T12:10:49.565642Z","fetched_at":"2026-11-21T19:15:55.946158Z","severity":"high","cvss_score":7.5,"epss":0.00206,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"virtualenv","vuln_id":"CVE-2026-113714","vuln_ids":["CVE-2026-113714","BIT-VIRTUALENV-2026-113714","GHSA-494P-63J8-28P3","PYSEC-2026-4373"],"tags":["osv","pypi","fix-available"],"cluster_id":4090,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10762","html":"https://vulnwatch.ve1ve2.com/item/10762"}},{"id":3758,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-113714: virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, download_wheel() writes package-index downloads directly into the reu…","summary":"virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, download_wheel() writes package-index downloads directly into the reusable wheel/house cache before selecting a verification target from pip's textual Saved output. With default-index digest comparison enabled, a controlled package index can inject a misleading Saved line through a discarded link's data-requires-python attribute; this forged-line variant also requires knowledge of an absolute path to the genuine bundled wheel. The wrong path can then be hashed, while a digest mismatch leaves the rejected archive in the cache for later selection without verification. A separate rejected-cache-file variant requires control over downloaded data or archive selection but not the forged-line prerequisites. Explicit custom-index exceptions are outside the promised PyPI comparison, and the issue does not independently bypass TLS or establish control of default PyPI. 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-494p-63j8-28p3\nhttps://github.com/pypa/virtualenv/security/advisories/GHSA-494p-63j8-28p3","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113714","published_at":"2026-10-20T19:17:34.050000Z","updated_at":"2026-11-17T20:27:31.103000Z","fetched_at":"2026-11-21T19:15:31.479283Z","severity":"high","cvss_score":7.5,"epss":0.00206,"is_kev":false,"has_exploit":true,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-113714","vuln_ids":["CVE-2026-113714","GHSA-494P-63J8-28P3"],"tags":["CWE-354"],"cluster_id":4090,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3758","html":"https://vulnwatch.ve1ve2.com/item/3758"}}]}