# CVE-2025-54368: uv is vulnerable to ZIP payload obfuscation through parsing differentials

- Severity: Medium 6.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-08-07T20:52:44.000Z
- Modified: 2026-07-07T17:56:47.324Z
- Also known as: GHSA-8qf3-x8v5-2pj8, PYSEC-2026-2001
- Weaknesses: CWE-20, CWE-436
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- astral-sh uv: < 0.8.6
- uv (PyPI): before 0.8.6

## Every score

- GitHub_M: CVSS:4.0 6.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/astral-sh/uv/security/advisories/GHSA-8qf3-x8v5-2pj8> (web)
- <https://github.com/astral-sh/uv/commit/7f1eaf48c193e045ca2c62c4581048765c55505f> (fix, web)
- <https://astral.sh/blog/uv-security-advisory-cve-2025-54368> (web)
- <https://blog.pypi.org/posts/2025-08-07-wheel-archive-confusion-attacks> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54368> (advisory)
- <https://github.com/astral-sh/uv> (package)
- <https://pypi.org/project/uv> (package)
- <https://github.com/advisories/GHSA-8qf3-x8v5-2pj8> (advisory)

## Sources

- CVE List: [CVE-2025-54368](https://www.cve.org/CVERecord?id=CVE-2025-54368), CVE Terms of Use, modified 2025-08-08
- GitHub Advisory Database: [GHSA-8qf3-x8v5-2pj8](https://github.com/advisories/GHSA-8qf3-x8v5-2pj8), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-54368](https://nvd.nist.gov/vuln/detail/CVE-2025-54368), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2001](https://osv.dev/vulnerability/PYSEC-2026-2001), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-54368 · Whole record: https://cve.day/CVE-2025-54368.json · Rebuilt by cve.day 2026-11-25T22:59:02.197Z
