CVE-2026-33020
CVE-2026-33020 · libsixel: Integer Overflow in write_png_to_file() leads to Heap-based Buffer Overflow
This page contains facts from public vulnerability sources. Check the original advisory before updating.
libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. Versions 1.8.7 and prior contain an integer overflow which leads to a heap buffer overflow via sixel_frame_convert_to_rgb888() in frame.c, where allocation size and pointer offset computations for palettised images (PAL1, PAL2, PAL4) are performed using int arithmetic before casting to size_t. For images whose pixel count exceeds INT_MAX / 4, the overflow produces an undersized heap allocation for the conversion buffer and a negative pointer offset for the normalization sub-buffer, after which sixel_helper_normalize_pixelformat() writes the full image data starting from the invalid pointer, causing massive heap corruption confirmed by ASAN. An attacker providing a specially crafted large palettised PNG can corrupt the heap of the victim process, resulting in a reliable crash and potential arbitrary code execution. This issue has been fixed in version 1.8.7-r1.
CVSS 7.1 · High · EPSS 0.2% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
libsixel
- Versions
- < 1.8.7-r1: Affected
No fix published
libsixel Debian:12
- Versions
- 1.10.3-3
- 1.10.5-1
- 1:1.8.7-1
- 1:1.8.7-2
- 1:1.8.7-3
- 1:1.8.7-4
- 1:1.8.7-5
- 1:1.8.7-6
- 1:1.8.7-r2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Debian:13
- Versions
- 1.10.5-1
- 1:1.8.7-1
- 1:1.8.7-2
- 1:1.8.7-3
- 1:1.8.7-4
- 1:1.8.7-5
- 1:1.8.7-6
- 1:1.8.7-r2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Debian:14
- Versions
- 1.10.5-1
- 1:1.8.7-1
- 1:1.8.7-2
- 1:1.8.7-3
- 1:1.8.7-4
- 1:1.8.7-5
- 1:1.8.7-6
- Affected ranges
- ECOSYSTEM: < 1:1.8.7-r2-1
Update to 1:1.8.7-r2-1
libsixel Ubuntu:16.04:LTS
- Versions
- 1.4.2-1
- 1.5.2-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Ubuntu:18.04:LTS
- Versions
- 1.5.2-2
- 1.7.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Ubuntu:20.04:LTS
- Versions
- 1.8.2-1
- 1.8.2-2.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Ubuntu:22.04:LTS
- Versions
- 1.8.6-2
- 1.10.3-2
- 1.10.3-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Ubuntu:24.04:LTS
- Versions
- 1.10.3-3
- 1.10.3-3build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Ubuntu:25.10
- Versions
- 1.10.5-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Ubuntu:26.10
- Versions
- 1.10.5-1build1
- 1:1.8.7-r2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libsixel Ubuntu:26.04:LTS
- Versions
- 1.10.5-1
- 1.10.5-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published