Fedora Account System
Red Hat Associate
Red Hat Customer
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process. 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.
This is fixed upstream in virtualenv 21.7.12, which is already released. EPEL 9 (20.21.1) and EPEL 10 (20.31.2) are not rebased or updated to it yet and might not be. Comment assisted by Claude Sonnet 5.5
Upstream considered this low, not high: https://github.com/pypa/virtualenv/issues/3764 The "Arbitrary code execution" makes it sound dangerous, but the "fix" basically just add a verification step. If the attacker can supply malicious wheels via MITM between the user and PyPI, they can also supply corresponding hashes (as they are also supplied by PyPI).