Parent-directory file write via null-byte symlink traversal
Published Jun 10, 2026 · Updated Jun 10, 2026
Path traversal in bit7z before 4.0.12 allows attackers to write files above an extraction directory through a crafted .7z archive. SafeOutPathBuilder::restoreSymlink() resizes a symlink target to gcount(), retaining a null byte that makes C++ validation see a safe name while POSIX symlink() resolves the truncated target as the parent directory. Exploitation requires a crafted archive to be extracted on Linux, macOS, or BSD; writes are limited to one directory level above the output and inherit the extracting process permissions.
Summary
What happened
Path traversal in bit7z before 4.0.12 allows attackers to write files above an extraction directory through a crafted .7z archive. SafeOutPathBuilder::restoreSymlink() resizes a symlink target to gcount(), retaining a null byte that makes C++ validation see a safe name while POSIX symlink() resolves the truncated target as the parent directory. Exploitation requires a crafted archive to be extracted on Linux, macOS, or BSD; writes are limited to one directory level above the output and inherit the extracting process permissions.
The record
- CVE
- CVE-2026-45380
- Published
- Jun 10, 2026
- Updated
- Jun 10, 2026
- Vendor
- Riccardo Ostani
- Product
- bit7z
- Classifications
- CWE-22, CWE-193, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 10, 2026CVE publishedPublication date reported by the CVE source.
- Jun 10, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 4.0.12
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-8wj8-9jwv-j24v proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo