Home / zip-rs / zip2 / CVE-2025-29787
CVE-2025-29787: is it exploited, and which versions of zip-rs zip2 are affected and fixed?
CVE-2025-29787 is a path traversal (reading or writing files outside the intended folder) vulnerability in zip-rs zip2. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: zip from 1.3.0 before 2.3.0 (GitHub advisory GHSA-94vh-gphv-8pm8). Fixed in 2.3.0 (GitHub advisory GHSA-94vh-gphv-8pm8). Severity: High (7.3, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:22 UTC.
What is CVE-2025-29787?
zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write
`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.
From the CVE record by GitHub_M, last updated March 19, 2025, 15:50 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| zip-rs | zip2 | >= 1.3.0, < 2.3.0 |
As the CVE record by GitHub_M states it, last updated March 19, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | zip | >= 1.3.0, < 2.3.0 | 2.3.0 | GHSA-94vh-gphv-8pm8 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 19, 2025. Summary: zip Incorrectly Canonicalizes Paths during Archive Extraction Leading to Arbitrary File Write.
How severe is CVE-2025-29787?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 4.0 | CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-29787 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, March 17, 2025)
- EPSS
- 0.67% probability of exploitation activity in the next 30 days, percentile 53.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
- CWE-61 UNIX Symbolic Link (Symlink) Following
- CWE-180 Incorrect Behavior Order: Validate Before Canonicalize
Where are the vendor advisories and references?
- https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8 x_refsource_CONFIRM
- https://github.com/zip-rs/zip2/commit/a2e062f37066c3b12860a32eb1cb44856cfb7afe x_refsource_MISC
- https://gist.github.com/eternal-flame-AD/bf71ef4f6828e741eb12ce7fd47b7b85 x_refsource_MISC
- https://github.com/zip-rs/zip2/releases/tag/v2.3.0 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- March 11, 2025
- Published
- March 17, 2025, 13:19 UTC
- CVE record updated
- March 19, 2025, 15:50 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 09:05 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:22 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect zip2?
- Oct 26, 2026CVE-2026-115909 zip-rs zip2: denial of service (uncontrolled resource consumption)
- Oct 26, 2026CVE-2026-115908 zip-rs zip2: path traversal (reading or writing files outside the intended folder)
- Oct 26, 2026CVE-2026-115907 zip-rs zip2: denial of service (uncontrolled resource consumption)
- Oct 26, 2026CVE-2026-115906 zip-rs zip2: improper Validation of Integrity Check Value
- Oct 26, 2026CVE-2026-115905 zip-rs zip2: improper input validation
Questions about CVE-2025-29787
Is CVE-2025-29787 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.67% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of zip-rs zip2 are affected by CVE-2025-29787?
zip from 1.3.0 before 2.3.0, per the GitHub advisory GHSA-94vh-gphv-8pm8. The tables above give every range the sources list.
Which version fixes CVE-2025-29787?
2.3.0, per the GitHub advisory GHSA-94vh-gphv-8pm8. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-29787?
High (7.3, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-29787?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.