Skip to main content

bit7z CVE-2026-45384

| EUVDEUVD-2026-36115 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-06-10 GitHub_M
6.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Identify archive directory with write access
  2. Delivery
    Pre-place symlink at <archive_path>.tmp targeting sensitive file
  3. Exploit
    Wait for or trigger bit7z archive update operation
  4. Execution
    bit7z opens symlink path for writing without resolving link type
  5. Persist
    Target file overwritten with archive data
  6. Impact
    File integrity violated or service disrupted

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires that the attacker hold write permission on the directory containing the archive at the time a bit7z archive update operation is initiated - this is the single binding prerequisite confirmed by the vendor release notes. The vulnerable code path is triggered only during archive *update* operations; extraction-only or creation-from-scratch workflows are not affected by this CVE. On Linux and macOS, any user with directory write access can create symlinks, so no elevated privilege is needed beyond that directory permission. On Windows, symlink creation (reparse points) requires administrator rights or Developer Mode enabled, sharply limiting the attack surface there. The attacker cannot control the exact bytes written to the target - the content is determined by the archive being processed - which constrains the impact to overwrite/corruption rather than arbitrary content injection.

Impact

The CVSS 3.1 vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L scoring 6.1 (Medium) is consistent with the described mechanics: local access, low complexity, low privilege, no interaction needed, no confidentiality impact, high integrity impact, and low availability impact from file corruption. No EPSS data was provided in the input, so exploitation probability cannot be quantified numerically. The vulnerability is absent from CISA KEV and no POC has been identified, suggesting it is not under active widespread exploitation. Real-world risk is most acute in shared POSIX environments where a lower-privileged local user can write to the same directory from which a higher-privileged process runs archive updates - a privilege escalation primitive - but is sharply limited on Windows and in single-user deployments. The raw CVSS score is appropriate; this is not a case of CVSS inflation, but the local attack vector and write-access prerequisite mean it is lower priority than a network-exploitable vulnerability at the same score.

Exploit ScenarioDerived

A local attacker sharing a filesystem with a service or privileged process that periodically updates bit7z-managed archives creates a symlink at <archive_path>.tmp pointing to a sensitive file such as a cron script or a service configuration file. When the privileged process next triggers an archive update, bit7z opens the symlink path for writing and overwrites the target file with archive data, corrupting or replacing it in a way the attacker partially influences through archive content. No public POC has been identified, but the technique requires only standard POSIX filesystem operations and no specialized tooling.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Arbitrary file overwrite in bit7z prior to version 4.0.12 is possible through a symlink attack targeting the predictable temporary file (<archive_path>.tmp) created during archive update operations. An attacker with write access to the archive directory can pre-place a symlink at that path pointing to a sensitive target file; when a process subsequently calls bit7z to update an archive, the library follows the symlink and overwrites the target with archive data. No public exploit has been identified at time of analysis and the vulnerability is not listed in CISA KEV, though its low-complexity prerequisites on POSIX systems make it a meaningful risk in shared-directory or multi-tenant environments.

RemediationAI

Vendor-released patch: v4.0.12. Upgrading to bit7z 4.0.12 is the definitive fix per the vendor advisory at https://github.com/rikyoz/bit7z/releases/tag/v4.0.12. If immediate upgrade is not feasible, restrict write permissions on archive-containing directories to only the specific user or service account performing archive updates, preventing any other principal from pre-placing the symlink; note this may not be practical in shared-directory deployments. On Linux, enabling the protected_symlinks sysctl (fs.protected_symlinks=1) blocks symlink following when the directory owner differs from the link owner, directly mitigating this attack class with no functional side effects for most workloads. On Windows, ensure Developer Mode is disabled and that no untrusted users hold administrator rights, as both are prerequisites for symlink creation there. None of these compensating controls are as reliable as applying the patch.

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 (CPE: cpe:2.3:a:rikyoz:bit7z:*:*:*:*:*:*:*:*) is a cross-platform C++ static library for archive compression and extraction, exposing a clean API over the 7-zip engine. The root cause is CWE-59 (Improper Link Resolution Before File Access - 'Link Following'): during archive update operations, the library derives a temp file path deterministically as <archive_path>.tmp and opens it for writing without first verifying that the path resolves to a regular file rather than a symlink. POSIX kernels follow symlinks transparently on open(), so any write intended for the temp file is silently redirected to the symlink target. This is a classic TOCTOU-adjacent pattern requiring no race window - the attacker sets up the symlink before the operation begins. Windows is substantially less exposed because creating symbolic links there typically requires administrator privileges or Developer Mode, whereas on Linux and macOS any user with directory write permission can create symlinks.

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 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
vuln.today AI 6.1 MEDIUM

Local vector and PR:L reflect the requirement for write access to the archive directory; I:H captures arbitrary file overwrite; C:N because no data is read; A:L for file corruption.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

1
Patch available
Jun 10, 2026 - 22:01 EUVD

DescriptionCVE.org

bit7z is a cross-platform C++ static library that allows the compression/extraction of archive files. Prior to version 4.0.12, there is an arbitrary file overwrite vulnerability via symlink attack on predictable temp files during archive update. 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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