unzip library path traversal in archive extraction

Severity: info · Published 2026-09-09

The unzip Rust library extracts ZIP archive contents without validating that entry names stay within the intended destination directory. An attacker can create a malicious ZIP file with entries named using path traversal sequences (like `../`) to write files outside the target folder, potentially overwriting system files or injecting code.

Vendors: crates.io.

Quick answers

Is This vulnerability exploited in the wild?
No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.
How severe is This vulnerability?
Informational severity, published 9 September 2026.
Which products and versions are affected?
unzip (crates.io) SEMVER:introduced=0.0.0-0; Unzip 0.1.0.
Is there a fix for This vulnerability?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is This vulnerability attacked?
It is attacked over the network, in a software library.
Am I affected?
Check whether you run unzip (crates.io) or Unzip 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.

Technical details

The Unzipper::unzip function builds output file paths directly from attacker-controlled ZIP entry names without sanitization or traversal checks, enabling arbitrary file writes via zip-slip (CWE-22/CWE-23/CWE-36). Exploitation requires an application to extract a crafted ZIP archive. The library is unmaintained with no patched versions available.

Affected products

  • unzip 0.1.0

Timeline

  • 2026-09-09: disclosed
  • 2026-09-21: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.