Bit7z v4.0.11 #323
rikyoz
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This security bugfix release fixes CVE-2026-27117.
A path traversal vulnerability ("Zip Slip") existed in bit7z's archive extraction functionality.
The library didn't adequately validate file paths contained in archive entries and returned by 7-Zip's DLLs, which do not perform any validation on entry paths within archives.
This allowed files to be written outside the intended extraction directory through three distinct mechanisms: relative, absolute, and symbolic link path traversal.
Note
The vulnerability only poses a risk if the application using bit7z handles user-supplied/unverified archives.
Changes from v4.0.10
The build option
BIT7Z_PATH_SANITIZATIONis now available on all platforms (previously, it was a Windows-only option).When
BIT7Z_PATH_SANITIZATIONisOFF(the default):/etc/crontabon Unix systems orC:\Windows\System32\evil.dllon Windows) are rejected, resulting in an extraction failure.C:file.txt->file.txt), and treated as relative paths; if the drive roots are different, the entry is rejected.When
BIT7Z_PATH_SANITIZATIONisON:C:file.txt->C_file.txtinstead ofC_\file.txt).C:\Windows\notepad.exe->C_\Windows\notepad.exe)./etc/crontab->etc/crontab).Regardless of the
BIT7Z_PATH_SANITIZATIONsetting:../evil.txt), resulting in an extraction failure.Other changes
Full Changelog: v4.0.10...v4.0.11
This is a maintenance release. For a full changelog of the other changes introduced by bit7z v4, please check https://github.com/rikyoz/bit7z/releases/tag/v4.0.0.
Binaries built using the default options with Clang10, GCC 9, MinGW 8, MSVC 2015, 2017, 2019, and 2022 👇
This discussion was created from the release Bit7z v4.0.11.
Beta Was this translation helpful? Give feedback.
All reactions