CVE-2025-54368 Details
Description
uv is a Python package and project manager written in Rust. In versions 0.8.5 and earlier, remote ZIP archives were handled in a streamwise fashion, and file entries were not reconciled against the archive's central directory. An attacker could contrive a ZIP archive that would extract with legitimate contents on some package installers, and malicious contents on others due to multiple local file entries. An attacker could also contrive a "stacked" ZIP input with multiple internal ZIPs, which would be handled differently by different package installers. The attacker could choose which installer to target in both scenarios. This issue is fixed in version 0.8.6. To work around this issue, users may choose to set UV_INSECURE_NO_ZIP_VALIDATION=1 to revert to the previous behavior.
A vulnerability exists in the 'uv' Python package and project manager, specifically in versions through 0.8.5. This issue arises from the handling of remote ZIP archives, which were processed in a streamwise manner without proper reconciliation against the archive's central directory. As a result, an attacker could create a ZIP archive that extracted different contents depending on the package installer used, potentially leading to the execution of malicious code. This vulnerability is particularly concerning for 'uv' users, as it could be exploited by uploading a crafted package to a third-party package index and then installing it with 'uv'.
Users are advised to upgrade to 'uv' version 0.8.6 or later, which addresses the vulnerability by implementing proper ZIP validation and reconciliation with the central directory. Users who encounter issues after upgrading can set the 'UV_INSECURE_NO_ZIP_VALIDATION' environment variable to revert to the previous ZIP handling behavior.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 8, 2025CISA-ADP
Assessed Aug 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://astral.sh/blog/uv-security-advisory-cve-2025-54368 | [email protected] | AdvisoryBundleRemedy |
| https://blog.pypi.org/posts/2025-08-07-wheel-archive-confusion-attacks | [email protected] | AdvisoryBundle |
| https://github.com/astral-sh/uv/commit/7f1eaf48c193e045ca2c62c4581048765c55505f | [email protected] | Source CodeVendor |
| https://github.com/astral-sh/uv/security/advisories/GHSA-8qf3-x8v5-2pj8 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-436 | Interpretation Conflict | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| astral-sh uv | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 8, 2025 | New CVE Received | [email protected] |
Volerion