Bug 2561904

Summary: CVE-2026-113725 uv: virtualenv: arbitrary code execution via crafted environment name [fedora-all]
Product: [Fedora] Fedora Reporter: Vipul Nair <vinair>
Component: uvAssignee: Ben Beasley <code>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: code, mhroncok, python-packagers-sig, rust-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["9176ccbb-f64a-4c4a-ac9d-13c61fb36e86"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-02 12:35:55 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: 2556417    

Description Vipul Nair 2026-10-27 11:54:54 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.7, the bash activate script escapes the environment name for only one of the two passes bash makes over PS1, so a backslash in the name undoes the escaping and a name containing \$(...) runs as commands in the user's shell each time bash draws the prompt. This issue is fixed in version 21.14.7.

Comment 1 Miro Hrončok 2026-10-27 15:43:12 UTC
uv's activate never implemented any of the escaping virtualenv did, so this is a class of bug that uv seems to indeed have

Comment 2 Miro Hrončok 2026-11-02 12:35:55 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/23058