CVE-2025-29787zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to…
`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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rust-zip | Fix pending | UBUNTU-CVE-2025-29787 | |
| Ubuntu 26.04 | rust-zip | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | rust-zip | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-29787 | |
| Ubuntu 24.04 | rust-zip | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | rust-zip | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | rust-zip | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-29787 | |
| crates.io library | zip | Fixed | 2.3.0 | GHSA-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.
- zip-rs zip2: affected: >= 1.3.0, < 2.3.0
References
- https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8
- https://github.com/zip-rs/zip2/commit/a2e062f37066c3b12860a32eb1cb44856cfb7afe
- https://gist.github.com/eternal-flame-AD/bf71ef4f6828e741eb12ce7fd47b7b85
- https://github.com/zip-rs/zip2/releases/tag/v2.3.0
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.