zip: AES Entry HMAC Authentication Bypass on Premature EOF
Affected
| Package | Affected versions | Fixed in |
|---|---|---|
| rust:zip | >= 0.6.0, < 9.0.0 | 9.0.0 |
An AES-encrypted (AE-x) entry's authentication code is verified only when the reader's byte counter lands exactly on zero. If the bounded entry reader reaches the archive's actual EOF before the attacker-controlled, header-declared compressed_size, the counter remains positive, the HMAC is never read or compared, and the truncated, unauthenticated plaintext is returned as a clean end of stream. A zero-payload entry also returns before authentication. An attacker who does not know the password c…
Read on GitHub Advisory Database
On 10/30/2026, 01:40 AM, GitHub Advisory Database published "zip: AES Entry HMAC Authentication Bypass on Premature EOF" (type: Advisory). Severity is "Medium" (medium). Related technologies: Rust. CVE: CVE-2026-115906.