CVE-2026-45380 Details
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.
A path traversal vulnerability has been identified in Bit7z versions prior to 4.0.12. The issue arises from a one-byte off-by-one error in the 'SafeOutPathBuilder::restoreSymlink()' function. This flaw allows an attacker to create a .7z archive that, when extracted with Bit7z on any non-Windows platform, generates a symlink that escapes the intended output directory. Files extracted through this symlink can be written to arbitrary locations outside the extraction directory, using the permissions of the process performing the extraction.
Users are advised to update Bit7z to version 4.0.12 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 10, 2026CISA-ADP
Assessed Jun 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v | CISA-ADP | AdvisoryBundleExploitRemedyVendor |
| https://github.com/rikyoz/bit7z/releases/tag/v4.0.12 | [email protected] | Release NotesVendor |
| https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v | [email protected] | AdvisoryBundleExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-193 | Off-by-one Error | [email protected] |
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| bit7z | <= 4.0.11 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 11, 2026 | CVE Modified | CISA-ADP |
| Jun 10, 2026 | New CVE Received | [email protected] |
Volerion