# unzip library path traversal in archive extraction

Source: https://junglewise.ai/threats/rustsec-2026-0297-unzip-archive-extraction-is-vulnerable-to-path-1aa6167e  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-09. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

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](https://junglewise.ai/threats/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

- [https://crates.io/crates/unzip](https://crates.io/crates/unzip)
- [https://rustsec.org/advisories/RUSTSEC-2026-0297.html](https://rustsec.org/advisories/RUSTSEC-2026-0297.html)

## Related threats

- [unzip library unmaintained with known path-traversal vulnerability](https://junglewise.ai/threats/rustsec-2026-0296-unzip-is-unmaintained-8d3c4670)
