← Vulnerabilities

HighAdvisoryRust

zip: Arbitrary file write outside the extraction directory, because ZipArchive::extract validates symlink targets lexically.

Affected

PackageAffected versionsFixed in
rust:zip>= 7.2.0, < 9.0.09.0.0

- Verified version: zip 9.0.0-pre3 - Affected versions: 7.2.0 and later - Precondition: The attacker knows (or can guess) the absolute path of the extraction destination The validation applied to symlinks is purely lexical. As a result, an attacker can write arbitrary files outside the extraction directory through a symlink. Exploitation requires the attacker to know (or guess) the absolute path of the destination, but this is realistic in practice: CI workspaces, /opt/app, a fixed Downloads pa…

Read on GitHub Advisory Database

On 10/30/2026, 01:40 AM, GitHub Advisory Database published "zip: Arbitrary file write outside the extraction directory, because ZipArchive::extract validates symlink targets lexically. " (type: Advisory). Severity is "High" (high). Related technologies: Rust. CVE: CVE-2026-115908.