Bug 2561889 - CVE-2026-113716 uv: virtualenv: Unauthorized file write via symlink following [fedora-all]
Summary: CVE-2026-113716 uv: virtualenv: Unauthorized file write via symlink following...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: uv
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard: {"flaws": ["274c3f9e-e1d0-41f3-91df-d...
Depends On:
Blocks: CVE-2026-113716
TreeView+ depends on / blocked
 
Reported: 2026-10-27 11:50 UTC by Vipul Nair
Modified: 2026-11-02 12:25 UTC (History)
4 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github astral-sh uv issues 23055 0 None open Builtin creation follows linked environment directories 2026-11-02 12:25:35 UTC

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


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