7-Zip — файловый архиватор с высокой степенью сжатия. Версии с 9.34 по 26.00 содержат чтение за пределами кучи с отклонением на единицу при поиске дескриптора безопасности обработчика архива WIM (Windows Imaging). В CHandler::GetSecurity (CPP/7zip/Archive/Wim/WimHandler.cpp) таблица SecurOffsets для каждого изображения содержит numEntries + 1 совокупное смещение, но проверка securityId >= SecurOffsets.Size() допускает SecurityId == numEntries, а затем функция считывает SecurOffsets[securityId + 1], получая один UInt32 за концом выделенного в куче CRecordVector (который не выполняет проверку границ для оператора []). SecurityId контролируется злоумышленником по смещению +0xC любой записи каталога в метаданных WIM, а обработчик зарегистрирован для .wim, .swm, .esd и .ppkg и включен по умолчанию в стандартном 7z.dll; OOB запускает нулевой щелчок в графическом интерфейсе, поскольку ListView 7zFM.exe вызывает GetRawProp(kpidNtSecure) для каждого элемента во время листинга (подтверждено ASan), а также доступен через листинг CLI с помощью 7zz l -slt.
Воздействие ограничивается отказом в обслуживании при усиленных распределителях и раскрытием незначительной информации, поскольку значение OOB используется только арифметически как длина и не раскрывается злоумышленнику; примитива записи нет.
Показать оригинальное описание (EN)
7-Zip is a file archiver with a high compression ratio. Versions 9.34 through 26.00 contain an off-by-one heap out-of-bounds read in the WIM (Windows Imaging) archive handler's security descriptor lookup. In CHandler::GetSecurity (CPP/7zip/Archive/Wim/WimHandler.cpp), the per-image SecurOffsets table holds numEntries + 1 cumulative offsets, but the check securityId >= SecurOffsets.Size() admits securityId == numEntries, and the function then reads SecurOffsets[securityId + 1], fetching one UInt32 past the end of the heap-allocated CRecordVector (which performs no bounds checking on operator[]). The securityId is attacker-controlled at offset +0xC of any directory entry in WIM metadata, and the handler is registered for .wim, .swm, .esd, and .ppkg and enabled by default in stock 7z.dll; the OOB triggers zero-click in the GUI because 7zFM.exe's ListView calls GetRawProp(kpidNtSecure) for every item during listing (ASan-confirmed), and is also reachable via CLI listing with 7zz l -slt. Impact is limited to denial of service under hardened allocators and minor information disclosure, since the OOB value is only consumed arithmetically as a length and is not surfaced to the attacker; there is no write primitive.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 1
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
7-Zip 7-Zip
cpe:2.3:a:7-zip:7-zip:*:*:*:*:*:*:*:*
|
9.34
|
26.01
|