Skip to main content

bit7z CVE-2026-45380

| EUVDEUVD-2026-36116 LOW
Path Traversal (CWE-22)
2026-06-10 GitHub_M
3.6
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft .7z archive with off-by-one symlink entry
  2. Delivery
    Deliver archive to POSIX victim
  3. Exploit
    Victim initiates extraction via bit7z application
  4. Execution
    SafeOutPathBuilder::restoreSymlink() creates symlink one level above output dir
  5. Persist
    Subsequent archive entries write through symlink
  6. Impact
    Attacker 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

bit7z < 4.0.12

Affected Packages

euvd bit7z fix: 4.0.12

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

Vendor (GitHub_M) PRIMARY 3.6 LOW
AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
vuln.today AI 3.6 LOW

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.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Jun 10, 2026 - 22:01 EUVD
CVE Published
Jun 10, 2026 - 20:00 cve.org
LOW 3.6

DescriptionCVE.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

EPSS Score
0.0%
Top 98% exploitable
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy