CVE-2026-45380: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in rikyoz bit7z
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.
AI Analysis
Technical Summary
CVE-2026-45380 is a path traversal vulnerability in the bit7z library before version 4.0.12. The flaw is due to a one-byte off-by-one error in the SafeOutPathBuilder::restoreSymlink() function, which allows an attacker to craft a .7z archive that creates a symlink escaping the intended extraction directory on non-Windows platforms. This symlink can be used to write arbitrary files outside the extraction directory during archive extraction, potentially leading to limited integrity and availability impacts. The vulnerability has been fixed in bit7z version 4.0.12.
Potential Impact
An attacker can craft a malicious .7z archive that, when extracted on non-Windows platforms using vulnerable bit7z versions, creates symlinks outside the intended extraction directory. This allows writing arbitrary files with the extracting process's permissions outside the target directory. The impact is limited to integrity and availability with no confidentiality loss reported. The CVSS score is low (3.6) reflecting the requirement for local access and user interaction.
Mitigation Recommendations
Upgrade bit7z to version 4.0.12 or later, where this vulnerability is patched. No other mitigation is indicated or required.
CVE-2026-45380: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in rikyoz bit7z
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.
CVSS v3.1
Score 3.6low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-45380 is a path traversal vulnerability in the bit7z library before version 4.0.12. The flaw is due to a one-byte off-by-one error in the SafeOutPathBuilder::restoreSymlink() function, which allows an attacker to craft a .7z archive that creates a symlink escaping the intended extraction directory on non-Windows platforms. This symlink can be used to write arbitrary files outside the extraction directory during archive extraction, potentially leading to limited integrity and availability impacts. The vulnerability has been fixed in bit7z version 4.0.12.
Potential Impact
An attacker can craft a malicious .7z archive that, when extracted on non-Windows platforms using vulnerable bit7z versions, creates symlinks outside the intended extraction directory. This allows writing arbitrary files with the extracting process's permissions outside the target directory. The impact is limited to integrity and availability with no confidentiality loss reported. The CVSS score is low (3.6) reflecting the requirement for local access and user interaction.
Mitigation Recommendations
Upgrade bit7z to version 4.0.12 or later, where this vulnerability is patched. No other mitigation is indicated or required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-12T00:51:29.086Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a29d0220e53e738839869bc
Added to database: 6/10/2026, 8:59:14 PM
Last enriched: 6/10/2026, 9:15:35 PM
Last updated: 6/10/2026, 10:37:29 PM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.