Bug 2561913 - CVE-2026-113721 uv: virtualenv: Arbitrary file overwrite via insecure symlink handling [fedora-all]
Summary: CVE-2026-113721 uv: virtualenv: Arbitrary file overwrite via insecure symlink...
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": ["6bcb4cf3-6154-4d3c-ab3d-a...
Depends On:
Blocks: CVE-2026-113721
TreeView+ depends on / blocked
 
Reported: 2026-10-27 11:58 UTC by Vipul Nair
Modified: 2026-11-02 12:27 UTC (History)
4 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github astral-sh uv issues 23056 0 None open Generated files can follow existing destination links 2026-11-02 12:27:53 UTC

Description Vipul Nair 2026-10-27 11:58:36 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, ViaTemplateActivator._generate() removes an existing output only when Path.exists() is true, allowing a dangling symlink to survive and redirect generated activation content, while PyEnvCfg.write() opens pyvenv.cfg without first replacing an existing symbolic or hard link. Another local account that prepares final entries inside the destination can therefore cause environment creation to create or overwrite files outside the requested tree with constrained virtualenv-generated content and the invoking user's permissions. The destination parent must remain controlled by the environment owner during creation; concurrent parent-directory replacement is a separate concern. This issue is fixed in version 21.14.9.

Comment 1 Miro Hrončok 2026-10-27 15:30:50 UTC
not confined to activation scripts, but seems reproducible anyway :(

Comment 2 Miro Hrončok 2026-11-02 12:27:54 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/23056


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