Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. zip
  4. ›
  5. CVE-2026-115906

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

October 29, 2026

An AES-encrypted (AE-x) entry’s authentication code is verified only when the reader’s byte counter lands exactly on zero. If the bounded entry reader reaches the archive’s actual EOF before the attacker-controlled, header-declared compressed_size, the counter remains positive, the HMAC is never read or compared, and the truncated, unauthenticated plaintext is returned as a clean end of stream. A zero-payload entry also returns before authentication. An attacker who does not know the password can modify an archive so chosen or modified plaintext is accepted with no error.

References

  • github.com/advisories/GHSA-8hxf-qr8p-62x4
  • github.com/zip-rs/zip2/commit/ec265db0b0602f8ffb9479327397bddefb7e2216
  • github.com/zip-rs/zip2/releases/tag/v9.0.0
  • github.com/zip-rs/zip2/security/advisories/GHSA-8hxf-qr8p-62x4
  • nvd.nist.gov/vuln/detail/CVE-2026-115906

Code Behaviors & Features

Detect and mitigate CVE-2026-115906 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.6.0 before 9.0.0

Fixed versions

  • 9.0.0

Solution

Upgrade to version 9.0.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-1284: Improper Validation of Specified Quantity in Input
  • CWE-354: Improper Validation of Integrity Check Value

Source file

cargo/zip/CVE-2026-115906.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 30 Oct 2026 00:16:14 +0000.