CVEfocus › CVE database › CVE-2025-29787

CVE-2025-29787zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to…

CVSS 7.3 HighEPSS 0.9% (higher than 56% of CVEs)Published 2025-03-17Updated 2025-03-19Assigner: GitHub_M

`zip` is a zip library for rust which supports reading and writing of simple ZIP files. In the archive extraction routine of affected versions of the `zip` crate starting with version 1.3.0 and prior to version 2.3.0, symbolic links earlier in the archive are allowed to be used for later files in the archive without validation of the final canonicalized path, allowing maliciously crafted archives to overwrite arbitrary files in the file system when extracted. Users who extract untrusted archive files using the following high-level API method may be affected and critical files on the system may be overwritten with arbitrary file permissions, which can potentially lead to code execution. Version 2.3.0 fixes the issue.

CWE-180CWE-22CWE-61

What to do

Fixed builds are available from crates.io: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
1Fix pending
2Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-zipFix pendingUBUNTU-CVE-2025-29787
Ubuntu 26.04rust-zipNot affected
vulnerable_code_not_present
Ubuntu 25.10rust-zipWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-29787
Ubuntu 24.04rust-zipNot affected
vulnerable_code_not_present
Ubuntu 22.04rust-zipNot affected
vulnerable_code_not_present
Ubuntu 20.04rust-zipWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-29787
crates.io libraryzipFixed2.3.0GHSA-94vh-gphv-8pm8

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.