CVE-2026-44636

libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. From to 1.8.7-r1, signed integer overflow in sixel_encode_highcolor's allocation size calculation can lead to a heap buffer overflow. The public sixel_encode entry point validates only that width and height are greater than zero, with no upper bound. width and height are multiplied as plain int when computing the allocation size for paletted_pixels and normalized_pixels. Any caller that asks libsixel to encode a pixel buffer with width times height greater than INT_MAX (about 2.15 billion) will hit a wrapped allocation size; under the right wrap, the malloc succeeds with a buffer much smaller than the encoder expects, and the encoder writes past the end of the heap allocation. This vulnerability is fixed in 1.8.7-r2.
Configurations

Configuration 1 (hide)

cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:*

History

16 May 2026, 01:16

Type Values Removed Values Added
References () https://github.com/saitoha/libsixel/security/advisories/GHSA-hx93-w8p2-ffh5 - Vendor Advisory () https://github.com/saitoha/libsixel/security/advisories/GHSA-hx93-w8p2-ffh5 - Vendor Advisory

15 May 2026, 17:56

Type Values Removed Values Added
CPE cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:*
First Time Saitoha
Saitoha libsixel
References () https://github.com/saitoha/libsixel/security/advisories/GHSA-hx93-w8p2-ffh5 - () https://github.com/saitoha/libsixel/security/advisories/GHSA-hx93-w8p2-ffh5 - Vendor Advisory

14 May 2026, 20:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-14 20:17

Updated : 2026-05-16 01:16


NVD link : CVE-2026-44636

Mitre link : CVE-2026-44636

CVE.ORG link : CVE-2026-44636


JSON object : View

Products Affected

saitoha

  • libsixel
CWE
CWE-122

Heap-based Buffer Overflow

CWE-190

Integer Overflow or Wraparound