RUSTSEC-2026-0545

Source
https://rustsec.org/advisories/RUSTSEC-2026-0545
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0545.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0545
Aliases
Published
2026-10-22T12:00:00Z
Modified
2026-11-17T10:15:02Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N CVSS Calculator
Summary
AES entries returned without checking their authentication code when the data ends early or is empty
Details

For WinZip AES (AE-1 and AE-2) entries, the 10-byte HMAC authentication code was read and checked only after the reader had consumed exactly the entry's declared compressed size. If the archive ended before that size was reached, the read returned end-of-stream and the truncated plaintext was accepted without the check. The authentication code of an entry with no encrypted data was never checked.

AES-CTR ciphertext can be changed bit by bit without the password, and AE-2 entries carry no CRC-32, so an attacker who can modify an archive can alter the decrypted contents of such an entry without any error being reported.

This affects reading AES-encrypted entries with a password (for example ZipArchive::by_name_decrypt) with the aes-crypto feature.

The fix returns an error when the data ends before the declared size, and checks the authentication code of empty entries.

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

Affected packages

crates.io / zip

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.6.0
Fixed
9.0.0

Ecosystem specific

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

Database specific

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