Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. uv
  4. ›
  5. GHSA-4gg8-gxpx-9rph

GHSA-4gg8-gxpx-9rph: uv is vulnerable to arbitrary file write through entry point names

May 29, 2026

In versions of uv prior to 0.11.15, when installing a distribution containing an entry point specification (under console_scripts or gui_scripts), uv would place the generated entry point according to the given name even if doing so resulted in a path outside of the environment’s scripts directory.

A malicious wheel could use this to place an executable outside of the intended environment, including in a directory already present on the user’s PATH. This could shadow or overwrite an existing executable and potentially result in unexpected code execution under the wheel’s control, even if the wheel’s installation environment was not explicitly added to PATH by the user.

In order to exploit this vulnerability, the attacker must induce their target into installing a malicious wheel.

References

  • github.com/advisories/GHSA-4gg8-gxpx-9rph
  • github.com/astral-sh/uv/security/advisories/GHSA-4gg8-gxpx-9rph

Code Behaviors & Features

Detect and mitigate GHSA-4gg8-gxpx-9rph with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.11.15

Fixed versions

  • 0.11.15

Solution

Upgrade to version 0.11.15 or above.

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/uv/GHSA-4gg8-gxpx-9rph.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:47 +0000.