Bug 2428458

Summary: CVE-2026-22702 uv: virtualenv: Local attacker can redirect file operations via TOCTOU race condition [fedora-42]
Product: [Fedora] Fedora Reporter: Sandipan Roy <saroy>
Component: uvAssignee: Ben Beasley <code>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 42CC: code, mhroncok, python-packagers-sig, rust-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["ebad4518-ded7-4b08-a70d-1e8269de12fa"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-01-10 15:20:54 UTC 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: 2428441    

Description Sandipan Roy 2026-01-10 13:15:49 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.

The following link provides references to all essential vulnerability management information. If something is wrong or missing, please contact a member of PSIRT.
https://spaces.redhat.com/display/PRODSEC/Vulnerability+Management+-+Essential+Documents+for+Engineering+Teams

Comment 1 Ben Beasley 2026-01-10 15:20:54 UTC
While uv does bundle (and document bundling of) a portion of virtualenv, this includes only activation scripts[1]. Based on the CVE report[2] and upstream advisory[3], and the linked fix[4], the vulnerability is in parts of the virtualenv package other than the activation scripts. Therefore, uv is not affected.

[1] https://github.com/pypa/virtualenv/tree/20.36.1/src/virtualenv/activation
[2] https://www.cve.org/CVERecord?id=CVE-2026-22702
[3] https://github.com/pypa/virtualenv/security/advisories/GHSA-597g-3phw-6986
[4] https://github.com/pypa/virtualenv/pull/3013