🇰🇷 한글 설명
7-Zip의 SquashFS 아카이브 핸들러에서 초기화되지 않은 힙 메모리를 읽는 취약점이 존재합니다. 이는 인덱스 배열이 불완전하게 채워져 있어 악의적으로 제작된 아카이브 파일을 열 때 힙 정보 유출 또는 서비스 거부(DoS)를 유발할 수 있습니다.
💡 쉬운 설명
7-Zip 프로그램이 특정 압축 파일을 열 때, 내부적으로 잘못된 메모리 정보를 읽는 문제가 있습니다. 이 문제를 악용하면 프로그램이 충돌하거나 중요한 데이터가 유출될 수 있습니다.
🇺🇸 원문 (English)
7-Zip is a file archiver with a high compression ratio. Versions 9.18 through 26.00 contain an uninitialized heap read in the SquashFS archive handler caused by a sparsely populated index array. In the SquashFS handler, _blockToNode is allocated with capacity for every metadata block but populated only when an inode crosses a block boundary, so a crafted image with few inodes spanning many blocks leaves most slots holding raw heap contents (the underlying allocator does not zero-initialize POD storage). When OpenDir looks up an attacker-influenced blockIndex (derived from the RootInode superblock field), it reads two of these uninitialized slots and passes them as the left/right bounds of a binary search over _nodesPos, which dereferences the midpoint without bounds checking; if the resulting value happens to match the search key, the returned index is used to read a full node struct from _nodes whose fields feed further directory parsing, forming a chained OOB read primitive that is heap-layout-dependent and not reliably triggerable. The SquashFS handler is enabled by default in stock 7z.dll and the issue triggers during Open() with no interaction beyond opening the file; impact is denial of service from wild-pointer dereference and potential heap information disclosure, with no write primitive. Version 26.01 fixes the issue.
📍 영향받는 시스템
7-Zip 9.18부터 26.00 버전
⚔️ 공격 벡터
악성 SquashFS 아카이브 파일을 7-Zip으로 열기만 하면 자동 발생
🛡️ 대응 방법
7-Zip을 최신 버전(26.01 이상)으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 26.00 이하이면 취약하며, 26.01 이상이면 안전합니다.
7z.exe i | findstr /i "Version"