Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft .7z archive with off-by-one symlink entry
-
DeliveryDeliver archive to POSIX victim
-
ExploitVictim initiates extraction via bit7z application
-
ExecutionSafeOutPathBuilder::restoreSymlink() creates symlink one level above output dir
-
PersistSubsequent archive entries write through symlink
-
ImpactAttacker files land in parent directory with process permissions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a victim on a POSIX (non-Windows) platform to extract a specially crafted .7z archive using an application built with bit7z prior to v4.0.12. The CVSS UI:R metric confirms that user interaction - specifically initiating the extraction - is required. The traversal depth is architecturally bounded to exactly one directory level above the extraction root; arbitrary filesystem write is not achievable. The AC:H metric reflects that the attacker must precisely engineer the off-by-one condition in the archive's symlink entry structure, adding meaningful crafting complexity. Windows systems are entirely excluded by platform. The extracting process's own filesystem permissions set the ceiling of impact - a low-privilege extraction process writing to a parent directory it does not own would be blocked by the OS. Non-default configuration is not required; the vulnerability is present in the default symlink-restoration code path on any POSIX deployment. |
| Impact | The CVSS base score of 3.6 (Low) is consistent with the actual exploitation constraints. The vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L reflects that: the attack requires local extraction on the victim's machine (AV:L), crafting the off-by-one exploit is non-trivial (AC:H), the victim must actively initiate extraction (UI:R), and impact is bounded to limited integrity and availability (I:L/A:L) with no confidentiality loss (C:N). The traversal depth is hard-capped at one directory level by the implementation, which further limits blast radius beyond what raw CVSS conveys. No EPSS score was provided in the input data, so exploitation probability cannot be quantified. This CVE is not listed in CISA KEV and no public exploit code has been identified, making this a low real-world priority for most deployments. However, applications on POSIX systems that automatically extract untrusted archives without user confirmation face a meaningfully elevated risk profile relative to the base CVSS, since UI:R reflects only the initial extraction trigger and not deliberate review of archive contents. |
| Exploit ScenarioDerived | An attacker crafts a .7z archive containing a symlink entry that exploits the off-by-one in SafeOutPathBuilder::restoreSymlink() to point one directory level above the intended extraction root, then appends further file entries that will be written through that symlink. When a victim on a POSIX system extracts this archive using a bit7z-based application, the out-of-bounds symlink is created first, and the subsequent entries land in the parent of the extraction directory - potentially overwriting configuration files, binaries, or data with the permissions of the extraction process. No public proof-of-concept code has been identified at time of analysis, so exploitation currently requires independent reconstruction of the off-by-one condition. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 10, 2026
Path traversal via crafted .7z archive in bit7z before v4.0.12 on POSIX platforms allows an attacker-controlled symlink to escape the extraction directory by exactly one level - up to the parent directory. Any archive entries extracted after the malicious symlink is placed will write attacker-controlled files to the parent of the intended output path, carrying the permissions of the extracting process. No public exploit has been identified at time of analysis and this CVE is not listed in CISA KEV; the vendor-confirmed fix ships in version 4.0.12.
RemediationAI
The vendor-released patch is bit7z version 4.0.12, confirmed at https://github.com/rikyoz/bit7z/releases/tag/v4.0.12. Because bit7z is a static library, developers must upgrade their dependency to v4.0.12 and rebuild any binaries that statically link against it - distributing the patched library alone is insufficient without a rebuild. For applications unable to upgrade immediately, the most actionable compensating control is to disable or skip symlink restoration during extraction if the bit7z API exposes that option, preventing the malicious symlink from being created at all. Alternatively, restricting extraction to trusted archive sources and running the extracting process under a least-privilege account limits the impact of any files written outside the extraction directory. The full security advisory including technical details is at https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
bit7z is a cross-platform C++ static library (CPE: cpe:2.3:a:rikyoz:bit7z:*:*:*:*:*:*:*:*) that wraps 7-Zip functionality and is embedded by developers into applications requiring archive compression and extraction. The root cause is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). Specifically, a one-byte off-by-one error in the SafeOutPathBuilder::restoreSymlink() function allows path validation to be bypassed during symlink restoration from within an archive. On POSIX systems where symlink restoration is implemented, a maliciously crafted symlink entry can resolve to a target one directory level above the configured extraction root. Symlink-based traversal during archive extraction is a well-documented attack class; this variant is architecturally bounded to a single level of escape, which is a meaningful but real constraint. Windows is architecturally excluded because bit7z does not implement symlink restoration on that platform.
Know when Bit7z gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
AV:L because extraction runs locally; AC:H for precise off-by-one crafting required; PR:N since archive delivery needs no system access; UI:R for mandatory user-triggered extraction; I:L and A:L reflect bounded one-level write; C:N as no data is read.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Bit7z versions prior to 4.0.11 contain a path traversal vulnerability that allows arbitrary file writes outside the inte
Arbitrary file overwrite in bit7z prior to version 4.0.12 is possible through a symlink attack targeting the predictable
EUVD-2026-36116
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB