sevenz-rust2 is vulnerable to Protection Mechanism Failure
46
Medium Risk
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.
You are affected if you are using a version that falls within the vulnerable range and if you explicitly enabled set_encrypt_header(true).
sevenz-rust2 is vulnerable to Protection Mechanism Failure in versions 0.7.0 - 0.20.0.
Upgrade the sevenz-rust2 library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant