CVE-2026-45384

bit7z: Arbitrary File Overwrite via Symlink Attack on Predictable Temp File During Archive Update

Published Jun 10, 2026 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

bit7z allows compression and extraction of archive files. A flaw in versions prior to 4.0.12 permits an attacker to overwrite arbitrary files by creating a symlink that points to a target file before the archive is updated, exploiting the predictable temporary file names. This results in the compromised file being replaced with data supplied by the attacker, thereby enabling data tampering, privilege escalation, or denial of service. The weakness corresponds to CWE‑377 and CWE‑59.

Affected Systems

The vulnerable code resides in the bit7z cross‑platform C++ library. Any application that links to bit7z and performs archive updates while running as a privileged user is susceptible. Versions earlier than 4.0.12 are impacted; the fix was introduced in release 4.0.12.

Risk and Exploitability

The CVSS score of 6.1 indicates moderate severity. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting no current widespread exploitation. The attack likely requires local file‑system access to place the symlink before the update process runs; if the library is used in a service with elevated privileges, a local attacker could coerce the service to perform the update and overwrite critical files. The threat level remains moderate but warrants prompt remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade bit7z to version 4.0.12 or newer, as the fix resolves the predictable temporary file flaw.
  • If upgrading is not feasible, configure the application to write temporary files to a protected directory and validate file names to prevent symlink exploitation.
  • Run any processes that invoke the archive update with the minimum required privileges and enforce strict write permissions on the temporary directory to block unauthorized symlink creation.

Generated by OpenCVE AI on June 10, 2026 at 23:02 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Rikyoz
Rikyoz bit7z
Vendors & Products Rikyoz
Rikyoz bit7z
Type Values Removed Values Added
Description 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.
Title bit7z: Arbitrary File Overwrite via Symlink Attack on Predictable Temp File During Archive Update
Weaknesses CWE-377
CWE-59
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L'}

Weaknesses
  • CWE-377

    Insecure Temporary File

  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 11, 2026, 1:38 PM
Reserved
May 12, 2026, 12:51 AM
Status
Deferred
Published
Jun 10, 2026, 10:16 PM
Modified
Jul 23, 2026, 9:10 AM