Skip to content
OpenAdvisories
High · 7.4 CVE-2026-115908 EUVD-2026-109985GHSA-hjqx-j4rw-g7xv

zip: Arbitrary file write outside the extraction directory, because ZipArchive::extract validates symlink targets lexically. (The defense against CVE-2025-29787 was broken in v7.2.0)

Published Oct 26, 2026 · Updated Oct 26, 2026 · Assigned by GitHub_M

Description

zip is a zip library for Rust that supports reading and writing simple ZIP files. From 7.2.0 until 9.0.0, ZipArchive::extract and ZipArchive::extract_unwrapped_root_dir use safe_prepare_path in src/read/zipfile.rs and simplified_components in src/path.rs to validate symbolic link targets with a lexical prefix comparison rather than resolving each intermediate link. An attacker who knows or can guess the absolute extraction destination can create a chain whose apparent target remains under the destination while an intermediate symlink resolves outside it, allowing attacker-controlled files to be created or overwritten with the extracting process's privileges. On Windows, discarded drive and UNC prefixes can permit a single-link escape when the process has SeCreateSymbolicLinkPrivilege, such as through administrator rights or Developer Mode. This regression is distinct from CVE-2025-29787. This issue is fixed in version 9.0.0.

Affected products

VendorProductAffectedFixed
zip-rs zip2 >= 7.2.0, < 9.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-zip No fix yet —
Ubuntu 26.04 LTS rust-zip No fix yet —
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 rust-keylime 0.2.10+12-160000.1.1 SUSE-SU-2026:24658-1
SLES 16.0 rust-keylime 0.2.10+12-160000.1.1 SUSE-SU-2026:24658-1
SLE Micro 6.2 rust-keylime 0.2.10+12-160000.1.1 SUSE-SU-2026:24641-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 5.5 rust-keylime 0.2.10+12-150500.3.22.1 SUSE-SU-2026:4931-1
SLE Micro 5.4 rust-keylime 0.2.10+12-150400.3.22.1 SUSE-SU-2026:4930-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gleam 1.19.2-1.1 openSUSE-SU-2026:12454-1
openSUSE Tumbleweed python-uv 0.13.6-1.1 openSUSE-SU-2026:12307-1
openSUSE Tumbleweed rust-keylime 0.2.10+12-1.1 openSUSE-SU-2026:12333-1
openSUSE Leap 16.0 rust-keylime 0.2.10+12-160000.1.1 openSUSE-SU-2026:22249-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ascan +1 No fix yet —
Wolfi rolling pixi 0.84.0-r0 —
Wolfi rolling pnpm-12 12.18.0-r0 —
Wolfi rolling ruff +1 0.17.4-r0 —
Wolfi rolling superset-6.1 6.1.0-r25 —
Wolfi rolling verus 0.2026.10.18-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io zip >= 7.2.0, < 9.0.0 9.0.0 GHSA-hjqx-j4rw-g7xv

Advisories 8

References