All vulnerabilities

crates.io

CVE-2026-115908

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

Severity
High 7.4
Published
29 Oct 2026
Last changed
17 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
9.0.0
Exploit chance
0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Path traversal (CWE-22)Link following (CWE-59)CWE-61
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
Also known as
GHSA-hjqx-j4rw-g7xv, RUSTSEC-2026-0546
Sources
OSV.dev and GitHub

Description

  • 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 path, and so on.

Impact extends further on Windows (verified on real hardware for both the separate-drive and UNC-share cases): Because simplified_components discards the Prefix component, paths like D:\ or a UNC path \attacker\share\ pass the starts_with check. As a result, outpath.push gets replaced onto a different drive/remote share, so a single symlink is enough — no intermediate symlink chain is required.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
zipcrates.io · osv:crates.io:zip
  • From 7.2.0 before 9.0.0

About zip

Downloads in the last 90 days (crates.io)
111,591,536crates.io, 23 Nov 2026
Total downloads (crates.io)
359,656,960crates.io, 23 Nov 2026

References