PyPI: uv

CVE-2025-54368

Safety vulnerability ID: SFTY-20250807-36047

Safety legacy ID: pyup.io-79083

Affected versions of the uv package are vulnerable to Improper Input Validation due to inadequate verification of ZIP central directory data and End-of-Central-Directory offsets in the streaming extractor. The vulnerable path is uv’s asynchronous ZIP parser (rs-async-zip) used by the wheel installation modules (uv-extract and uv-install-wheel), which trusts local file headers, permits duplicate or missing central-directory entries, and interprets the EOCD offset in a way that causes divergent extraction behaviour across installers.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

uv allows ZIP payload obfuscation through parsing differentials

Advisory

Affected versions of the uv package are vulnerable to Improper Input Validation due to inadequate verification of ZIP central directory data and End-of-Central-Directory offsets in the streaming extractor. The vulnerable path is uv’s asynchronous ZIP parser (rs-async-zip) used by the wheel installation modules (uv-extract and uv-install-wheel), which trusts local file headers, permits duplicate or missing central-directory entries, and interprets the EOCD offset in a way that causes divergent extraction behaviour across installers.

Affected Package

Affecting uv package, versions<0.8.6

Also affects

---

How to Fix

Upgradeuvto0.8.6or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more