Intel

AIKIDO-2026-10013

sevenz-rust2 is vulnerable to Protection Mechanism Failure

Protection Mechanism Failure Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jan 9, 2026

46

Medium Risk

This Affects:

RUSTsevenz-rust2
0.7.0 - 0.20.0
Fixed in 0.20.1
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to a Plaintext Archive Header Information Disclosure. When archive header encryption is explicitly enabled set_encrypt_header(true), a size optimization check in the code incorrectly bypasses encryption for small entries; because the check compares raw header size against compressed size plus a constant without accounting for AES encryption padding, it often writes the header (containing filenames, directory structure, and timestamps) in plain text. An attacker could exploit this by analyzing the archive's raw bytes to extract sensitive metadata from supposedly encrypted archives, compromising confidentiality.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and if you explicitly enabled set_encrypt_header(true).

Background info

sevenz-rust2 is vulnerable to Protection Mechanism Failure in versions 0.7.0 - 0.20.0.

How to fix this

Upgrade the sevenz-rust2 library to the patch version.