Bug 2581963

Summary: CVE-2026-102930 python-virtualenv: virtualenv: Arbitrary code execution via unverified downloaded seed wheels [fedora-all]
Product: [Fedora] Fedora Reporter: Ganesh <gnaik>
Component: python-virtualenvAssignee: Lumír Balhar <lbalhar>
Status: ON_QA --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: cstratak, lbalhar, mhroncok, mrunge, python-packagers-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["2f3c244d-74b8-40b3-b955-b3d70c67f20a"]}
Fixed In Version: python-virtualenv-21.15.6-1.fc46 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2543652    

Description Ganesh 2026-11-23 16:09:07 UTC
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.

Comment 1 Miro Hrončok 2026-11-24 14:15:10 UTC
This is fixed upstream in virtualenv 21.7.12, which is already released. It is fixed in Fedora 46 with python-virtualenv-21.15.6-1.fc46. Fedora 45 (21.7.5) and Fedora 44 and 43 (20.35.4) are not rebased or updated to it yet and might not be.

Comment assisted by Claude Sonnet 5.5

Comment 2 Miro Hrončok 2026-11-24 15:01:04 UTC
https://src.fedoraproject.org/rpms/python-virtualenv/pull-request/181 rebases Fedora 45 to 21.7.16

I am *not* working on Fedora 43 and 44

Comment 3 Miro Hrončok 2026-11-24 15:14:29 UTC
Also, 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 beween the user and PyPI, they can also supply corresponding hashes (as they are also supplied by PyPI).

Comment 4 Fedora Update System 2026-11-24 18:36:19 UTC
FEDORA-2026-40dcb2c5da (python-virtualenv-21.7.16-2.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-40dcb2c5da

Comment 5 Fedora Update System 2026-11-25 03:31:13 UTC
FEDORA-2026-40dcb2c5da has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-40dcb2c5da`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-40dcb2c5da

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-12-03 01:01:21 UTC
FEDORA-2026-40dcb2c5da (python-virtualenv-21.7.16-2.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.