Soumettre #1053562: twogood unshield 1.6.2 (and master feaa32f) Out-of-Bounds Readinformation

Titretwogood unshield 1.6.2 (and master feaa32f) Out-of-Bounds Read
Descriptionunshield_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).
La source⚠️ https://github.com/twogood/unshield/pull/238
Utilisateur
 wangjiakang (UID 72714)
Soumission23/10/2026 05:42 (il y a 29 jours)
Modérer21/11/2026 04:48 (29 days later)
StatutAccepté
Entrée VulDB441689 [twogood unshield jusqu’à 1.6.2 Cabinet Descriptor Parser lib/libunshield.c unshield_get_cab_descriptor divulgation d'information]
Points20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!