Vulnerability · Published Mar 17, 2025 · Assigned by GitHub_M

CVE-2025-29787zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write

High 7.3

In plain English

A high-severity path traversal in zip2 from zip-rs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities).

Severity (CVSS 4.0)7.3High
Exploit odds (30 days)0.6%top 51.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Ubuntu:25.10rust-zipno fix listedUBUNTU-CVE-2025-29787
Ubuntu:26.10rust-zipno fix listedUBUNTU-CVE-2025-29787

Affected products (as reported)

VendorProductVersions
zip-rs zip2 >= 1.3.0, < 2.3.0

Weakness: CWE-22, CWE-61, CWE-180 · Vector: 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

References