Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify archive directory with write access
-
DeliveryPre-place symlink at <archive_path>.tmp targeting sensitive file
-
ExploitWait for or trigger bit7z archive update operation
-
Executionbit7z opens symlink path for writing without resolving link type
-
PersistTarget file overwritten with archive data
-
ImpactFile 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 (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
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.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
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Bit7z versions prior to 4.0.11 contain a path traversal vulnerability that allows arbitrary file writes outside the inte
Path traversal via crafted .7z archive in bit7z before v4.0.12 on POSIX platforms allows an attacker-controlled symlink
EUVD-2026-36115
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB