Rust zip crate HMAC authentication bypass
Oct 31 find · published Oct 29The Rust zip crate versions 0.6.0 through 8.x skip HMAC-SHA1-80 verification on AES-encrypted entries when the stream reaches premature end-of-file or zero length, allowing attackers to forge or modify encrypted ZIP entries without password knowledge. The vulnerability exists in the WinZip AE-x AES decryption reader implementation. An attacker can craft a ZIP archive where the entry stream hits premature EOF before the internal byte counter reaches zero, causing the reader to return success and skip HMAC verification entirely. Combined with AES-CTR ciphertext malleability, this enables arbitrary plaintext delivery without detection. CVE-2026-115906 (CVSS 6.5) was fixed in version 9.0.0. Any Rust application using the zip crate to decrypt AES-encrypted ZIP entries is affected.
Comments
Sign in to join the conversation.