# CVE-2025-29787: RUSTSEC-2025-0168 - Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write

Source: https://junglewise.ai/threats/cve-2025-29787-zip-incorrectly-canonicalizes-paths-during-archive-extraction  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-03-16  
License: CC BY 4.0 with a link back

CVE-2025-29787 · Severity: medium · CVSS 4 · Published 2025-03-16

Incorrect path canonicalization during Archive Extraction Leading to Arbitrary File Write

Technologies: [zip (crates.io)](https://junglewise.ai/threats/technologies/zip). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2025-29787 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-29787 being exploited in the wild.

**How severe is CVE-2025-29787?** Medium severity, with a CVSS score of 4, published 16 March 2025.

**Which products and versions are affected?** zip (crates.io) SEMVER:introduced=1.3.0,fixed=2.3.0.

**Is there a fix for CVE-2025-29787?** Yes. zip (crates.io): upgrade to 2.3.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-29787?** Check whether you run zip (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- zip (crates.io): upgrade to 2.3.0 or later

  ```sh
  cargo update -p zip
  ```


## Affected products

- zip (crates.io) SEMVER:introduced=1.3.0,fixed=2.3.0

## Identifiers

- CVE-2025-29787
- GHSA-94vh-gphv-8pm8
- RUSTSEC-2025-0168

## Related threats

- [zip Rust library denial of service in symlink extraction](https://junglewise.ai/threats/cve-2026-115909-zip-is-a-zip-library-for-rust-that-supports-reading-and-writing)
- [zip symlink escape vulnerability in extract](https://junglewise.ai/threats/cve-2026-115908-zip-is-a-zip-library-for-rust-that-supports-reading-and-writing)
- [zip library capacity overflow in legacy decoders](https://junglewise.ai/threats/cve-2026-115907-zip-is-a-zip-library-for-rust-that-supports-reading-and-writing)
- [zip library authentication bypass in AES entry reader](https://junglewise.ai/threats/cve-2026-115906-zip-is-a-zip-library-for-rust-that-supports-reading-and-writing)
- [zip library path traversal via Central Directory mismatch](https://junglewise.ai/threats/cve-2026-115905-zip-is-a-zip-library-for-rust-that-supports-reading-and-writing)
