Description
Astral uv before 0.8.22 contains a path traversal vulnerability in source distribution (sdist) tar extraction that allows a specially crafted sequence of symlinks to redirect file writes outside the intended extraction prefix. Attackers can publish a malicious sdist that, when installed by a victim, writes arbitrary files to filesystem locations outside the installation prefix.
Published: 2026-10-21
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary File Write
Action: Immediate Patch
AI Analysis

Impact

Astral uv before version 0.8.22 contains a path traversal flaw in the extraction of source distribution tarballs. A malicious creator can craft a sequence of symlinks inside the tar archive that, when uv extracts the package, causes files to be written outside the intended installation prefix. This allows an attacker to overwrite arbitrary files on the victim’s file system, potentially leading to code execution or privilege escalation if the overwritten files are executable binaries or configuration files used by privileged services.

Affected Systems

The vulnerability affects all deployments of Astral uv up to and including 0.8.21, as well as any older releases that have not applied the 0.8.22 fix. Users who install packages through uv—particularly from public Python package indices—are exposed, regardless of the target operating system.

Risk and Exploitability

The CVSS base score of 8.7 signals a high severity flaw. The EPSS score is less than 1%, indicating a low but non-zero probability of exploitation; nevertheless, the ability to write arbitrary files means the impact could be severe. This issue is not listed in the CISA KEV catalog, but the vulnerability can be abused by simply running a malicious sdist, a common user action when installing packages with uv. Attacks would likely originate from compromised or malicious package registries or from untrusted third‑party distribution channels.

Generated by OpenCVE AI on October 22, 2026 at 14:06 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to uv 0.8.22 or later, which contains the fix for the symlink traversal bug.
  • If an immediate upgrade is not possible, validate the integrity of any source distribution before running uv—check checksums and source authenticity—and consider installing the package only from trusted repositories.
  • Run uv in a sandboxed or containerised environment with a restricted file system, or otherwise isolate the installation process so that extracted files cannot reach critical system locations.

Generated by OpenCVE AI on October 22, 2026 at 14:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 22 Oct 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-59
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 21 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Astral
Astral uv
Vendors & Products Astral
Astral uv

Wed, 21 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 21 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
Description Astral uv before 0.8.22 contains a path traversal vulnerability in source distribution (sdist) tar extraction that allows a specially crafted sequence of symlinks to redirect file writes outside the intended extraction prefix. Attackers can publish a malicious sdist that, when installed by a victim, writes arbitrary files to filesystem locations outside the installation prefix.
Title Astral uv through 0.8.21 Path Traversal via Symlinks in Sdist Tar Extraction
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-21T15:51:10.699Z

Reserved: 2026-10-20T21:48:54.317Z

Link: CVE-2025-71437

cve-icon Vulnrichment

Updated: 2026-10-21T14:40:33.177Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-21T01:17:19.493

Modified: 2026-10-28T14:10:00.220

Link: CVE-2025-71437

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-21T00:36:20Z

Links: CVE-2025-71437 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T14:15:06Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')