Bug 2561889

Summary: CVE-2026-113716 uv: virtualenv: Unauthorized file write via symlink following [fedora-all]
Product: [Fedora] Fedora Reporter: Vipul Nair <vinair>
Component: uvAssignee: Ben Beasley <code>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: code, mhroncok, python-packagers-sig, rust-sig
Target Milestone: ---Keywords: Reopened, Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["274c3f9e-e1d0-41f3-91df-db6518e1ce18"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-02 12:25:36 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: 2556400    

Description Vipul Nair 2026-10-27 11:50:24 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.14.9, the builtin creator calls ensure_dir() for executable, library, and package directories, and ensure_dir() accepts an existing symlink to a directory because exists() follows it. Interpreter creation, seed installation, and activation generation then write through the linked parent outside the requested destination when another local account prepared the tree and the invoking user can access the target. The --clear option removes the planted tree first, while ordinary creation reaches it; arbitrary attacker-selected output bytes are not established. This issue is fixed in version 21.14.9.

Comment 1 Ben Beasley 2026-10-27 12:30:11 UTC
Only the activation scripts are vendored (and modified) in uv from virtualenv. Since this flaw doesn’t lie in the activation scripts, it can’t affect uv.

Comment 2 Ben Beasley 2026-10-27 15:48:54 UTC
Since bug 2561913 turned out to be reproducible in uv despite not involving activation scripts (perhaps due to similar design flaws in separate implementations), I’m reopening this for further triaging.

Comment 3 Miro Hrončok 2026-10-27 16:03:45 UTC
seems applicable to uv indeed

Comment 4 Miro Hrončok 2026-11-02 12:25:36 UTC
Reported to uv security contact and got a reply: This does not constitute vulnerability within uv’s attacker and threat models

Public upstream bug: https://github.com/astral-sh/uv/issues/23055