Improper Validation of Integrity Check Value Affecting rust-zip package, versions <9.0.5+ds-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-RUSTZIP-21723747
  • published27 Oct 2026
  • disclosed26 Oct 2026

Introduced: 26 Oct 2026

NewCVE-2026-115906  (opens in a new tab)
CWE-354  (opens in a new tab)
CWE-1284  (opens in a new tab)

How to fix?

Upgrade Debian:unstable rust-zip to version 9.0.5+ds-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-zip package and not the rust-zip package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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.