# CVE-2025-13327: Uv: uv: specially crafted zip archives lead to arbitrary code execution due to parsing differentials

> Attackers can execute arbitrary code by tricking users into installing specially crafted ZIP archives via the uv package installer.

- **Severity:** Medium 6.3 (`CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 27 Feb 2026
- **Updated:** 29 Oct 2026
- **Also known as:** ECHO-20c9-9c83-3932, GHSA-pqhf-p39g-3x64, GHSA-v653-r55g-hcmg, MINI-x4c3-jv97-wx8x, PYSEC-2026-2295, openSUSE-SU-2026:20330-1

## What is CVE-2025-13327?

CVE-2025-13327 is a medium-severity code injection vulnerability in Red Hat AI Inference Server, published on 27 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

A flaw was found in uv. This vulnerability allows an attacker to execute malicious code during package resolution or installation via specially crafted ZIP (Zipped Information Package) archives that exploit parsing differentials, requiring user interaction to install an attacker-controlled package.

Weakness: CWE-1286 (Improper Validation of Syntactic Correctness of Input)

## Which versions are affected by CVE-2025-13327?

5 open source packages ship an affected version, including uv. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `uv` | PyPI | All versions | 0.9.6 |
| `uv` | PyPI | All versions | 0.9.6 |
| `uv` | PyPI | All versions | 0.9.6 |
| `uv` | crates.io | All versions | 0.9.6 |
| `uv` | crates.io | All versions | 0.9.6 |
| `python-uv` | openSUSE:Leap 16.0 | All versions | 0.7.18-160000.4.1 |

Products: Astral Uv.

## How do I fix CVE-2025-13327?

Upgrade uv to 0.9.6 or later.

## Is CVE-2025-13327 being exploited?

There is no known exploitation of CVE-2025-13327 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-13327 and fix it if it is affected.

What it is: CVE-2025-13327 is a medium-severity code injection vulnerability in Red Hat AI Inference Server, published on 27 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2025-13327 in the wild and no public exploit code.

Affected packages and fixed versions:
- uv (PyPI): affected all versions; fixed in 0.9.6
- uv (PyPI): affected all versions; fixed in 0.9.6
- uv (PyPI): affected all versions; fixed in 0.9.6
- uv (crates.io): affected all versions; fixed in 0.9.6
- uv (crates.io): affected all versions; fixed in 0.9.6

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-13327/ (Markdown: https://insights.sbomify.com/CVE-2025-13327/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-13327
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-13327
- OSV: https://osv.dev/vulnerability/CVE-2025-13327

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-13327/
Summaries are generated and may contain mistakes; the official description above is the record.
