Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-45380: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in rikyoz bit7z

0
Low
VulnerabilityCVE-2026-45380cvecve-2026-45380cwe-22cwe-193
Published: Wed Jun 10 2026 (06/10/2026, 20:00:24 UTC)
Source: CVE Database V5
Vendor/Project: rikyoz
Product: bit7z

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.

CVSS v3.1

Score 3.6low

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L

Affected software

GitHub Actionsmore threats →ai
rikyoz/bit7z
pkg:github/rikyoz/bit7z
Affected versions
<4.0.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/10/2026, 21:15:35 UTC

Technical Analysis

CVE-2026-45380 is a path traversal vulnerability in the bit7z library before version 4.0.12. The flaw is due to a one-byte off-by-one error in the SafeOutPathBuilder::restoreSymlink() function, which allows an attacker to craft a .7z archive that creates a symlink escaping the intended extraction directory on non-Windows platforms. This symlink can be used to write arbitrary files outside the extraction directory during archive extraction, potentially leading to limited integrity and availability impacts. The vulnerability has been fixed in bit7z version 4.0.12.

Potential Impact

An attacker can craft a malicious .7z archive that, when extracted on non-Windows platforms using vulnerable bit7z versions, creates symlinks outside the intended extraction directory. This allows writing arbitrary files with the extracting process's permissions outside the target directory. The impact is limited to integrity and availability with no confidentiality loss reported. The CVSS score is low (3.6) reflecting the requirement for local access and user interaction.

Mitigation Recommendations

Upgrade bit7z to version 4.0.12 or later, where this vulnerability is patched. No other mitigation is indicated or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-12T00:51:29.086Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a29d0220e53e738839869bc

Added to database: 6/10/2026, 8:59:14 PM

Last enriched: 6/10/2026, 9:15:35 PM

Last updated: 6/10/2026, 10:37:29 PM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses