| 제목 | twogood unshield 1.6.2 (and master feaa32f) Out-of-Bounds Read |
|---|
| 설명 | unshield_get_cab_descriptor() in lib/libunshield.c reads the fixed-size InstallShield cabinet descriptor at header->data + cab_descriptor_offset without validating that the range lies within the header buffer (header->size). The descriptor spans 0x276 bytes (file-table fields plus MAX_FILE_GROUP_COUNT + MAX_COMPONENT_COUNT 32-bit offsets), so a crafted cabinet with an out-of-range cab_descriptor_offset causes an out-of-bounds read; with a large offset the resulting pointer is invalid and the release build crashes with SIGSEGV.
A 20-byte input file is sufficient: 49 53 63 28 00 00 00 00 00 00 00 00 f0 ff ff 7f 01 00 00 00, saved as data1.cab, then `unshield l data1.cab` (exit 139). Under ASan the same read is reported as a heap-buffer-overflow in get_unaligned_le32() called from unshield_get_cab_descriptor(). The bug affects unshield 1.6.2 (tag 51de441, 2025-04-03) and master (feaa32f, 2026-10-18); the vulnerable read dates back to commit ec28898 (2004). It is reachable through the public CLI (unshield l|x|t <file>) and the libunshield API (unshield_open, unshield_open2) when parsing an attacker-supplied local cabinet.
A public fix PR with regression tests is available: https://github.com/twogood/unshield/pull/238 (commit b8dfb76, pending merge). CVSS 3.1: AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (5.5). This is not a duplicate of CVE-2026-110716 (unshield_get_file_table) or upstream issue #43 (component path, which the same PR also fixes). |
|---|
| 원천 | ⚠️ https://github.com/twogood/unshield/pull/238 |
|---|
| 사용자 | wangjiakang (UID 72714) |
|---|
| 제출 | 2026. 10. 23. AM 05:42 (29 날 ago) |
|---|
| 모더레이션 | 2026. 11. 21. AM 04:48 (29 days later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 441689 [twogood unshield 까지 1.6.2 Cabinet Descriptor Parser lib/libunshield.c unshield_get_cab_descriptor 정보 공개] |
|---|
| 포인트들 | 20 |
|---|