High severity · published Apr 14, 2026
CVE-2026-33020
libsixel: Integer Overflow in write_png_to_file() leads to Heap-based Buffer Overflow
7.1
CVSS
0.2%
EPSS
No
On KEV
Description
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 vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
None
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 10% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
libsixel · saitoha
< 1.8.7-r1 · source: vendor, NVD
Affected product
LI
libsixel
saitoha
More from libsixel
9.8
CVE-2019-19638
An issue was discovered in libsixel 1.8.2
9.8
CVE-2019-19637
An issue was discovered in libsixel 1.8.2
9.8
CVE-2019-19636
An issue was discovered in libsixel 1.8.2
9.8
CVE-2019-19635
An issue was discovered in libsixel 1.8.2
8.8
CVE-2022-27046
libsixel 1.8.6 suffers from a Heap Use After Free vulnerability in in libsixel/src/dither.c:388