CVE-2026-115906: zip: AES Entry HMAC Authentication Bypass on Premature EOF

Published Oct 26, 2026
·
Updated

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 dataremaining 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 byindexdecrypt, bynamedecrypt, bypathdecrypt, or password-enabled byindexwithoptions can therefore accept modified plaintext without an authentication error. This issue is fixed in version 9.0.0.

Affected Software

1 affected component
crates.io/zip>=0.6.0<9.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade zip to a version that resolves this vulnerability.

    Fixed in 9.0.0

Event History

Oct 26, 2026
CVE Published
via MITRE·04:30 PM
Data Sourced
via MITRE·04:30 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using the Rust zip crate from version 0.6.0 up to, but not including, 9.0.0 are affected when they decrypt AES-encrypted entries through by_index_decrypt, by_name_decrypt, by_path_decrypt, or password-enabled by_index_with_options.

2

What must an attacker do to exploit the flaw?

An attacker must provide a crafted AES-encrypted ZIP entry that causes the bounded reader to reach the actual end of the archive while the entry's attacker-controlled remaining-data counter is still positive, or an encrypted entry with no payload. This can allow modified plaintext to be accepted without an authentication error.

3

Is user interaction required?

Yes. The supplied vector indicates user interaction is required. The affected application must be induced to process the malicious ZIP archive.

4

How can this be remediated?

Upgrade the zip crate to version 9.0.0, which fixes the missing HMAC verification condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203