Bug 2561899

Summary: CVE-2026-113715 uv: virtualenv: Environment isolation bypass via crafted destination path [epel-all]
Product: [Fedora] Fedora EPEL Reporter: Vipul Nair <vinair>
Component: uvAssignee: Ben Beasley <code>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: epel10CC: 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-13 12:23:22 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:53:09 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 Ben Beasley 2026-11-13 12:23:22 UTC
This flaw doesn’t exist in the virtualenv activation scripts, which are the only part of virtualenv actually vendored in uv. However, we can’t write it off quite that easily, since some other flaws in virtualenv have turned out to also exist in uv even though the code in question was not vendored. (That is, in some cases uv re-implemented the same flawed algorithms.) It’s hard to see how that could be the case here, though: as far as I can tell, uv doesn’t support anything like virtualenv’s --creator option. I think it’s safe to say that this one doesn’t apply.

Comment 2 Ben Beasley 2026-11-13 12:26:11 UTC
Well, now that I found the Fedora bug, I take it back: it was possible to reproduce this with uv’s own virtualenv creation code, https://bugzilla.redhat.com/show_bug.cgi?id=2561897#c1.