Bug 2561897

Summary: CVE-2026-113715 uv: virtualenv: Environment isolation bypass via crafted destination path [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: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["93dd2223-1666-4f30-a9cc-4c6ad734aebd"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-11-02 12:22:56 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: 2556409    

Description Vipul Nair 2026-10-27 11:52:51 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 stdlib venv creator reads generated pyvenv.cfg with str.splitlines() and merges parsed keys over virtualenv's selected configuration. An untrusted caller who influences the destination pathname can include a line-boundary character such as U+2028 to inject keys including home and include-system-site-packages, causing path data to change configuration structure before final output. Setting include-system-site-packages to true weakens environment isolation, while an altered home can change which standard-library files the interpreter loads if the attacker also controls that location. The builtin creator does not use this readback path. This issue is fixed in version 21.14.9.

Comment 1 Miro Hrončok 2026-10-27 15:54:21 UTC
seems reproducible, despite not being related to the activation scripts

Comment 2 Miro Hrončok 2026-11-02 12:22:56 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/23054