Skip to content
OpenAdvisories

Description

zip is a zip library for Rust that supports reading and writing simple ZIP files. From 0.6.0 until 9.0.0, the AES entry reader in src/aes.rs verifies its HMAC only when the attacker-controlled data counter reaches zero. If the underlying bounded reader reaches the real end of the archive while data_remaining is still positive, or if an encrypted entry has no payload, the reader can return a clean end of stream without reading and comparing the authentication tag. Applications using by_index_decrypt, by_name_decrypt, by_path_decrypt, or password-enabled by_index_with_options can therefore accept modified plaintext without an authentication error. This issue is fixed in version 9.0.0.

Affected products

VendorProductAffectedFixed
zip-rs zip2 >= 0.6.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
Debian 14 rust-zip No fix yet —
Debian 13 rust-zip No fix yet —
Debian 12 rust-zip No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-zip No fix yet —
Ubuntu 26.04 LTS rust-zip No fix yet —
Ubuntu 24.04 LTS rust-zip No fix yet —
Ubuntu 22.04 LTS rust-zip No fix yet —
Ubuntu 20.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 Leap 16.0 rust-keylime 0.2.10+12-160000.1.1 openSUSE-SU-2026:22249-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 rust No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling ascan +2 No fix yet —
Wolfi rolling deno 2.9.8-r3 —
Wolfi rolling geckodriver 0.37.1-r7 —
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 verus 0.2026.10.18-r1 —
Wolfi rolling wasm-pack 0.15.1-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io zip >= 0.6.0, < 9.0.0 9.0.0 GHSA-8hxf-qr8p-62x4

Advisories 5

References