Skip to main content
← All vulnerabilities
CVE-2025-29787GHSA-94VH-GPHV-8PM8RUSTSEC-2025-0168

zip Vulnerable to Incorrect Path Canonicalization During Archive Extraction, Leading to Arbitrary File Write

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.3.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

`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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • zip-rs zip2

    From 1.3.0 · fixed in 2.3.0

  • zipcrates.io

    From 1.3.0 · fixed in 2.3.0

References 4

GitHub · zip-rs/zip2

gist.github.com