VulnWatch by ve1ve2
high 7.5 EPSS 0.55%

RUSTSEC-2026-0547: Legacy Shrink, Reduce and Implode decoders preallocate the declared uncompressed size

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
zip

https://osv.dev/vulnerability/RUSTSEC-2026-0547 ↗

osvcrates.iofix-available

Legacy Shrink, Reduce and Implode decoders preallocate the declared uncompressed size With the `legacy-zip` feature, the decoders for the Shrink, Reduce and Implode compression methods reserved output capacity for the entry's declared uncompressed size before decoding anything. That size comes from the archive, and a ZIP64 entry can declare any 64-bit value, so reading or extracting a crafted entry of a few bytes panics with "capacity overflow" or fails a huge allocation. An attacker who can supply an archive can stop a process that reads it, for example through `ZipArchive::extract`. Only builds with the `legacy-zip` feature are affected; it is not enabled by default. The fix caps the preallocation at 1 MiB, and such an entry now returns an error. Affected: crates.io:zip Fixed in: 9.0.0 References: https://crates.io/crates/zip https://rustsec.org/advisories/RUSTSEC-2026-0547.html https://github.com/zip-rs/zip2/pull/991

Linked vulnerabilities (2)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

zip: legacy Shrink/Reduce/Implode decoder: denial of service from attacker-controlled ZIP64 uncompressed size

CWE: CWE-400, CWE-789Aliases: CVE-2026-115907
CVE-2026-115907 high 7.5 EPSS 0.55% (p47) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

zip: legacy Shrink/Reduce/Implode decoder: denial of service from attacker-controlled ZIP64 uncompressed size

CWE: CWE-400, CWE-789Aliases: GHSA-9hj8-73fh-9963