Archive Extraction Security Alert: Zip Slip (`../` Path Traversal in Tar/Zip)

Untrusted archive entry contains `../../etc/...` relative path components.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: Archive Extraction Security Alert Platform: Security
Common Root Causes:
  • Untrusted archive entry contains `../../etc/...` relative path components.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Canonicalize each extracted target path and assert it stays strictly inside the destination root.
Safe Diagnostic Command:
unzip -l <archive.zip> | grep "\.\."
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Untrusted archive entry contains `../../etc/...` relative path components. Recommended diagnostic: `unzip -l <archive.zip> | grep "\.\."`. Remediation: Canonicalize each extracted target path and assert it stays strictly inside the destination root.

Worked Examples

  • Run `unzip -l <archive.zip> | grep "\.\."` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-sec-path-traversal-zip-slip · Independently verified: 2026-11-25

Related Resources