CVE-2025-29787
zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write
Also known as GHSA-94vh-gphv-8pm8, RUSTSEC-2025-0168
Mitigation
- Upgrade zip to 2.3.0 or later.
Who should check
- Projects that depend on crates.io package zip (>= 1.3.0, < 2.3.0)
- Anyone running zip-rs zip2 >= 1.3.0, < 2.3.0
Vulnerability facts
- Affected
- zip >= 1.3.0, < 2.3.0
- Fixed in
- 2.3.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Attack requirements: None
- Privileges required: Low
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 0.86% chance of exploitation in 30 days (percentile 56, 2026-11-26)
- CWE
- CWE-22, CWE-61, CWE-180
- Modified
Description
`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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-29787. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-29787.md Affected: zip >= 1.3.0, < 2.3.0 Fixed in: 2.3.0 Steps: 1. Search this machine and project for zip (crates.io), zip-rs zip2: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-29787 being exploited?
There is no confirmed exploitation: CVE-2025-29787 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.86% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-29787?
High: CVSS 7.3 (v4.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-29787?
zip >= 1.3.0, < 2.3.0.
Is there a fix for CVE-2025-29787?
Yes. Fixed in 2.3.0. Upgrade zip to 2.3.0 or later.
How do I check if I'm affected by CVE-2025-29787?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.