CVE Catalog

CVE-2026-45380

LowCVSS 3.6
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.12%

2th percentile - higher than 2% of all known CVEs

Summary

Vulnerability in bit7z library before version 4.0.12 causes an off-by-one error in SafeOutPathBuilder::restoreSymlink(), allowing a crafted .7z archive to create a symlink outside the intended output directory on non-Windows platforms, enabling arbitrary file writes.

Risk Assessment

The risk involves writing arbitrary files outside the intended directory, potentially leading to system integrity compromise or malicious code injection.

Recommendation

Update the bit7z library to version 4.0.12 or later.

Original NVD description (English source)

bit7z is a cross-platform C++ static library that allows the compression/extraction of archive files. Prior to version 4.0.12, a one-byte off-by-one error in SafeOutPathBuilder::restoreSymlink() allows an attacker to craft a .7z archive that, when extracted with bit7z on any non-Windows platform, creates a symlink escaping the intended output directory. Subsequent archive entries extracted through this symlink write arbitrary files outside the extraction directory with the permissions of the extracting process. This issue has been patched in version 4.0.12.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS