CVE-2026-115906
CVE-2026-115906 · zip: AES Entry HMAC Authentication Bypass on Premature EOF
This page contains facts from public vulnerability sources. Check the original advisory before updating.
zip is a zip library for Rust that supports reading and writing simple ZIP files. From 0.6.0 until 9.0.0, the AES entry reader in src/aes.rs verifies its HMAC only when the attacker-controlled data counter reaches zero. If the underlying bounded reader reaches the real end of the archive while data_remaining is still positive, or if an encrypted entry has no payload, the reader can return a clean end of stream without reading and comparing the authentication tag. Applications using by_index_decrypt, by_name_decrypt, by_path_decrypt, or password-enabled by_index_with_options can therefore accept modified plaintext without an authentication error. This issue is fixed in version 9.0.0.
CVSS 6.5 · Medium · EPSS 0.2% · Public exploit
- Published
- Updated
Stack: system
Affected products and versions
zip2
- Versions
- >= 0.6.0, < 9.0.0: Affected
No fix published
rust-zip Debian:12
- Versions
- 0.6.3-3
- 0.6.6-1
- 0.6.6-2
- 0.6.6-3
- 0.6.6-4
- 0.6.6-5
- 2.5.0-1
- 5.1.1+dfsg-1
- 5.1.1-1
- 5.1.1-2
- 5.1.1-3
- 5.1.1-4
- 9.0.5+ds-1
- 9.1.3+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Debian:13
- Versions
- 2.5.0-1
- 5.1.1+dfsg-1
- 5.1.1-1
- 5.1.1-2
- 5.1.1-3
- 5.1.1-4
- 9.0.5+ds-1
- 9.1.3+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Debian:14
- Versions
- 2.5.0-1
- 5.1.1+dfsg-1
- 5.1.1-1
- 5.1.1-2
- 5.1.1-3
- 5.1.1-4
- 9.0.5+ds-1
- 9.1.3+ds-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:20.04:LTS
- Versions
- 0.5.0-1
- 0.5.3-1
- 0.5.3-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:22.04:LTS
- Versions
- 0.5.8-2
- 0.5.13-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:24.04:LTS
- Versions
- 0.6.6-1
- 0.6.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:26.10
- Versions
- 5.1.1-3
- 5.1.1+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
rust-zip Ubuntu:26.04:LTS
- Versions
- 2.5.0-1
- 5.1.1-2
- 5.1.1-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published