CVE-2026-45384 Details
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.
A vulnerability allowing arbitrary file overwrites has been identified in bit7z, a cross-platform C++ static library for compressing and extracting archive files. This issue exists in versions prior to 4.0.12 and arises from a symlink attack on predictable temporary files during archive updates. When the library updates an archive, it writes to a temporary file with a known name, which can be intercepted by an attacker with write access to the archive directory. By placing a symlink pointing to a target file at the temporary file's location, the library inadvertently overwrites the target file with archive data. This vulnerability is particularly concerning when the archive format is TAR, as it allows for the injection of SSH keys into the authorized_keys file, granting unauthorized access.
Users are advised to update to bit7z version 4.0.12, which addresses this vulnerability by changing how temporary files are handled during archive updates. The new version eliminates the predictability of temporary file names and prevents symlinks from being followed, thereby closing the window for this type of attack.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 10, 2026CISA-ADP
Assessed Jun 11, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/rikyoz/bit7z/security/advisories/GHSA-wjch-42rm-q53h | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/rikyoz/bit7z/releases/tag/v4.0.12 | [email protected] | Release NotesVendor |
| https://github.com/rikyoz/bit7z/security/advisories/GHSA-wjch-42rm-q53h | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-377 | Insecure Temporary File | [email protected] |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| bit7z | <= 4.0.11 (semver) |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 11, 2026 | CVE Modified | CISA-ADP |
| Jun 10, 2026 | New CVE Received | [email protected] |
Volerion