| Название | FastStone Soft FastStone Image Viewer 8.3 Heap-based buffer overflow (out-of-bounds write) |
|---|
| Описание | FastStone Image Viewer 8.3 decodes 1-bit-per-pixel run-length-encoded TGA images (image type 9 or higher, pixel depth 1) into a fixed 1024-byte buffer. It computes the decode length as the sum of (run_count * 3) across the RLE packets. It does not check that the accumulated output stays within the 1024-byte buffer. The per-packet run counts come byte-by-byte from the file, and the code does not range-check them. An attacker can drive the total decoded output past the end of the buffer. The overflow is byte-granular and tunable per run count. This path allows a precise overwrite of exactly the adjacent FastMM heap block header. This produces a controlled heap-metadata corruption and a controlled write.
ROOT CAUSE
The 1bpp RLE decoder accumulates output as sum(count * 3) but never checks the running total against the 1024-byte destination buffer. The code reads the run counts straight from the file. The run counts have no upper bound. There is no per-packet or cumulative bounds check before the decode writes.
CVSS 3.1 VECTOR
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Base score: 7.8 (High). Local attack through a malicious image. Low complexity. No privileges. User interaction required. High CIA impact. The byte-granular control makes reliable code execution achievable, so the realistic severity is critical.
CWE
CWE-787 Out-of-bounds Write (primary). CWE-122 Heap-based Buffer Overflow. CWE-190 Integer Truncation/Error (unchecked accumulated length).
AFFECTED VERSIONS
FastStone Image Viewer 8.3 (x.x.x.x), 32-bit build, Windows. The 1bpp RLE decode path has no bounds guard in this build. Earlier versions that share the same path are probably affected but not verified.
DISCLOSURE TIMELINE:
2026-04-17: Vendor contacted by EMail (no response)
2026-06-03: Follow-Up sent (no response)
ADVISORY
Password for advisory link: e=P\-5Ka{'@`
PLEASE DO NOT INCLUDE IN THE PUBLIC REPORT |
|---|
| Пользователь | jonzab (UID 97521) |
|---|
| Представление | 28.07.2026 12:07 (2 месяцы назад) |
|---|
| Модерация | 28.09.2026 11:40 (2 months later) |
|---|
| Статус | принято |
|---|
| Запись VulDB | 411012 [FastStone Image Viewer до 8.3 1bpp RLE Decoder повреждение памяти] |
|---|
| Баллы | 20 |
|---|