Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.5
bit7z: Unsecured Archive Extraction Allows File Overwriting
CVE-2026-27117
Summary
The bit7z library doesn't properly check where files are being extracted to, allowing an attacker to write files outside the intended directory. This could lead to sensitive data being overwritten or malicious files being created. Update to version 4.0.11 or validate each file's destination path before extraction if an update isn't possible.
What to do
No fix is available yet. Check with your software vendor for updates.
Affected software
| Vendor | Product | Affected versions | Fix available |
|---|---|---|---|
| rikyoz | bit7z | <= 4.0.11 | – |
Original title
bit7z is a cross-platform C++ static library that allows the compression/extraction of archive files. Prior to version 4.0.11, a path traversal vulnerability ("Zip Slip") exists in bit7z's archive ...
Original description
bit7z is a cross-platform C++ static library that allows the compression/extraction of archive files. Prior to version 4.0.11, a path traversal vulnerability ("Zip Slip") exists in bit7z's archive extraction functionality. The library does not adequately validate file paths contained in archive entries, allowing files to be written outside the intended extraction directory through three distinct mechanisms: relative path traversal, absolute path traversal, and symbolic link traversal. An attacker can exploit this by providing a malicious archive to any application that uses bit7z to extract untrusted archives. Successful exploitation results in arbitrary file write with the privileges of the process performing the extraction. This could lead to overwriting of application binaries, configuration files, or other sensitive data. The vulnerability does not directly enable reading of file contents; the confidentiality impact is limited to the calling application's own behavior after extraction. However, applications that subsequently serve or display extracted files may face secondary confidentiality risks from attacker-created symlinks. Fixes have been released in version 4.0.11. If upgrading is not immediately possible, users can mitigate the vulnerability by validating each entry's destination path before writing. Other mitigations include running extraction with least privilege and extracting untrusted archives in a sandboxed directory.
nvd CVSS3.1
7.5
Vulnerability type
CWE-22
Path Traversal
CWE-23
CWE-36
- https://github.com/rikyoz/bit7z/commit/31763da9a3e41a199c141c8d71f6c11de24b45cf Patch
- https://github.com/rikyoz/bit7z/commit/9e020483eefa5825ec9310b1d869933d4f77f969 Patch
- https://github.com/rikyoz/bit7z/releases/tag/v4.0.11 Release Notes
- https://github.com/rikyoz/bit7z/security/advisories/GHSA-qvjh-hhw4-3gx9 Exploit Vendor Advisory
Published: 24 Feb 2026 · Updated: 12 Mar 2026 · First seen: 6 Mar 2026