CVE-2025-29787
Rust vulnerability analysis and mitigation

Overview

CVE-2025-29787 affects the zip crate, a Rust library for reading and writing ZIP files. The vulnerability was discovered in versions 1.3.0 through 2.2.0 and was disclosed on March 17, 2025. The issue involves improper path canonicalization during archive extraction, which could allow maliciously crafted archives to overwrite arbitrary files on the system (GitHub Advisory).

Technical details

The vulnerability is a variant of the zip-slip vulnerability where symbolic links earlier in the archive can be used for later files without proper validation of the final canonicalized path. The issue has been assigned a CVSS v4.0 score of 7.3 (High) with the vector string 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. The vulnerability is categorized under multiple CWE categories including CWE-22 (Path Traversal), CWE-61 (UNIX Symbolic Link Following), and CWE-180 (Incorrect Behavior Order) (GitHub Advisory).

Impact

When exploited, this vulnerability can lead to arbitrary file overwrites in the file system with arbitrary file permissions. This could potentially result in remote code execution, system compromise, unauthorized file modifications, or denial of service attacks. The ability to overwrite files with arbitrary permissions further exacerbates the impact by potentially allowing attackers to bypass security restrictions and escalate privileges (SecMaster Blog).

Mitigation and workarounds

The vulnerability has been fixed in version 2.3.0 of the zip crate. Users should update to this version or later to mitigate the issue. The fix involves proper validation of symlink targets and ensuring they remain within the destination directory. As additional security measures, it's recommended to implement additional validation of file paths before extraction and follow the principle of least privilege when extracting archives (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65807HIGH8.4
  • RustRust
  • sd
NoNoDec 10, 2025
CVE-2025-66627HIGH7.8
  • RustRust
  • wasmi
NoYesDec 09, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management