Bug 2561904 - CVE-2026-113725 uv: virtualenv: arbitrary code execution via crafted environment name [fedora-all]
Summary: CVE-2026-113725 uv: virtualenv: arbitrary code execution via crafted environm...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: uv
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard: {"flaws": ["9176ccbb-f64a-4c4a-ac9d-1...
Depends On:
Blocks: CVE-2026-113725
TreeView+ depends on / blocked
 
Reported: 2026-10-27 11:54 UTC by Vipul Nair
Modified: 2026-11-02 12:35 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-11-02 12:35:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github astral-sh uv issues 23058 0 None open Bash prompt values can change meaning under older compatibility modes (POSIX) 2026-11-02 12:35:54 UTC

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


Note You need to log in before you can comment on or make changes to this bug.