CVE-2026-45380

LOW

bit7z: Path Traversal via Null Byte Injection from `gcount()` Off-by-One in `restoreSymlink()`

Title source: cna
STIX 2.1

Description

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.

References (2)

Core 2
Core References
X_Refsource_Misc x_refsource_misc
https://github.com/rikyoz/bit7z/releases/tag/v4.0.12

Scores

CVSS v3 3.6
EPSS 0.0012
EPSS Percentile 1.9%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-193 CWE-22
Status published
Products (1)
rikyoz/bit7z < 4.0.12
Published Jun 10, 2026
Tracked Since Jun 11, 2026