Description
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.
Severity (CVSS)
| Base score | 6.5 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| Provided by | CNA |
Weaknesses
- CWE-354 — CWE-354: Improper Validation of Integrity Check Value
- CWE-1284 — CWE-1284: Improper Validation of Specified Quantity in Input
Affected products
| Vendor | Product | Versions |
|---|---|---|
| zip-rs | zip2 | >= 0.6.0, < 9.0.0 [affected] |
References
- https://github.com/zip-rs/zip2/security/advisories/GHSA-8hxf-qr8p-62x4 (x_refsource_CONFIRM)
- https://github.com/zip-rs/zip2/commit/ec265db0b0602f8ffb9479327397bddefb7e2216 (x_refsource_MISC)
- https://github.com/zip-rs/zip2/releases/tag/v9.0.0 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 27 Oct 2026 07:01 UTC.