Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-114109 Overview
CVE-2026-114109 is a path traversal vulnerability [CWE-22] in uv, the Rust-based Python package manager from Astral. Versions prior to 0.11.15 fail to sanitize console_scripts and gui_scripts entry point names when installing Python wheels. A malicious wheel can embed traversal sequences in entry point names to write executable files outside the intended scripts directory. Attackers who convince a user to install a crafted wheel can place or overwrite binaries in directories on PATH, leading to arbitrary code execution the next time the shadowed command runs.
Critical Impact
Installing a malicious wheel with uv can drop attacker-controlled executables into PATH directories, enabling code execution by shadowing legitimate binaries.
Affected Products
- Astral uv versions prior to 0.11.15
- Python environments where wheels are installed using vulnerable uv releases
- CI/CD pipelines and developer workstations consuming untrusted Python packages via uv
Discovery Timeline
- 2026-10-21 - CVE-2026-114109 published to the National Vulnerability Database (NVD)
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114109
Vulnerability Analysis
The flaw resides in how uv processes wheel metadata during package installation. Python wheels declare console and GUI entry points in metadata files such as entry_points.txt. For each entry point, package installers generate a launcher script in the environment's scripts directory. uv concatenates the entry point name directly into the output path without validating or normalizing it.
When an entry point name contains path separators or traversal sequences such as .., the resulting write path escapes the scripts directory. The installer then writes an executable launcher at an attacker-chosen location on the filesystem. Because wheel installation runs with the privileges of the user invoking uv, the written file inherits those permissions and the executable bit required to run as a command.
The practical impact is binary planting. Attackers can target directories earlier in PATH than the real location of a common tool, so typing git, python, or ssh executes the malicious payload instead. Overwriting existing binaries extends the window of persistence beyond a single session.
Root Cause
The root cause is missing input validation on wheel entry point names before they are used as filesystem path components. uv trusted the metadata inside third-party wheels and performed no normalization or containment check against the target scripts directory.
Attack Vector
Exploitation requires the victim to install a malicious wheel using uv, for example through uv pip install, uv add, or resolution of a transitive dependency from a registry the attacker controls or has compromised. No elevated privileges or user interaction beyond the install command are required. See the GitHub Security Advisory GHSA-4gg8-gxpx-9rph and the VulnCheck Advisory for Arbitrary File Write for technical details.
// No verified exploit code is published. The vulnerability is triggered by a wheel
// whose entry_points.txt declares a console_scripts or gui_scripts name containing
// path traversal sequences, causing uv to write the launcher outside the scripts directory.
Detection Methods for CVE-2026-114109
Indicators of Compromise
- Files appearing in PATH directories such as /usr/local/bin, ~/.local/bin, or Windows Scripts folders with modification times matching recent uv install operations.
- Launcher scripts or executables whose names collide with existing system binaries like python, pip, git, or ssh.
- uv installation logs referencing wheels from untrusted indexes or recently registered package names.
- Unexpected child processes spawned from user-writable directories when common commands are invoked.
Detection Strategies
- Inventory installed uv versions across developer and build systems and flag any release below 0.11.15.
- Baseline the contents of per-environment scripts directories and alert on writes that fall outside those directories during Python package installs.
- Monitor process creation events where the parent is uv and the written file path contains .. or resolves outside the target virtual environment.
Monitoring Recommendations
- Enable file integrity monitoring on PATH directories writable by developer accounts and CI runners.
- Log all package manager invocations in CI pipelines and correlate them with filesystem changes.
- Track outbound connections from build hosts to package indexes and flag resolution of unexpected or typosquatted package names.
How to Mitigate CVE-2026-114109
Immediate Actions Required
- Upgrade uv to version 0.11.15 or later on every workstation, container image, and CI runner.
- Audit recently installed wheels for suspicious entry point names and review scripts directories for unexpected binaries.
- Rotate credentials and secrets accessible from systems that installed untrusted wheels with a vulnerable uv release.
Patch Information
Astral addressed the vulnerability in uv0.11.15 by validating entry point names and ensuring generated launcher paths remain within the target scripts directory. Refer to GitHub Security Advisory GHSA-4gg8-gxpx-9rph for the authoritative fix details and affected version ranges.
Workarounds
- Restrict uv installs to vetted internal package indexes and disable installation from arbitrary public sources until patching is complete.
- Pin and hash-lock dependencies so unexpected transitive wheels cannot be introduced during resolution.
- Run package installs inside ephemeral, non-privileged containers where write access to shared PATH directories is unavailable.
# Upgrade uv to the patched release
uv self update
uv --version # confirm 0.11.15 or newer
# Alternative: reinstall via the official installer or package manager
# pipx upgrade uv
# brew upgrade uv
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

