CVE-2026-45380: bit7z - Path Traversal
- Cve: CVE-2026-45380
- Name: bit7z - Path Traversal
- Description: 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.
- Impact: Attackers can write arbitrary files outside the extraction directory with the extracting process's permissions, potentially leading to system compromise.
- Remediation: Update to version 4.0.12 or later.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: low
- Cvss score: 3.6
- Cvss vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L
- Epss score: 0.00116
- Epss percentile: 0.01607
- Assignee: [email protected]
- Published at: 2026-06-10T22:16:58Z
- Age in days: 167
- Modified at: 2026-07-23T09:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-45380
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/rikyoz/bit7z/releases/tag/v4.0.12 | nvd | |
| https://github.com/rikyoz/bit7z/security/advisories/GHSA-8wj8-9jwv-j24v | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rikyoz:bit7z | < 4.0.12 | no | cna_alias_text | /v1/products/rikyoz/bit7z |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rikyoz/bit7z | releases, security_advisory | yes | /v1/repositories/rikyoz/bit7z |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts