RUSTSEC-2026-0547

Source
https://rustsec.org/advisories/RUSTSEC-2026-0547
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0547.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0547
Aliases
Published
2026-10-22T12:00:00Z
Modified
2026-11-17T10:15:03Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Legacy Shrink, Reduce and Implode decoders preallocate the declared uncompressed size
Details

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.

Database specific
{
    "license":  "CC0-1.0"
}
References

Affected packages

crates.io / zip

Package

Affected ranges

Type
SEMVER
Events
Introduced
5.1.0
Fixed
9.0.0

Ecosystem specific

{
    "affected_functions":  null,
    "affects":  {
        "arch":  [],
        "functions":  [],
        "os":  []
    }
}

Database specific

categories
[
    "denial-of-service"
]
cvss
"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0547.json"