{"id":"CVE-2026-33021","published":"2026-04-14T21:57:22Z","modified":"2026-04-16T13:54:36Z","title":"libsixel: Use-after-free in sixel_encoder_encode_bytes()","vendor":"saitoha","product":"libsixel","tier":"tail","description":{"text":"libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. Versions 1.8.7 and prior contain a use-after-free vulnerability in sixel_encoder_encode_bytes() because sixel_frame_init() stores the caller-owned pixel buffer pointer directly in frame->pixels without making a defensive copy. When a resize operation is triggered, sixel_frame_convert_to_rgb888() unconditionally frees this caller-owned buffer and replaces it with a new internal allocation, leaving the caller with a dangling pointer. Any subsequent access to the original buffer by the caller constitutes a use-after-free, confirmed by AddressSanitizer. An attacker who controls incoming frames can trigger this bug repeatedly and predictably, resulting in a reliable crash with potential for code execution. This issue has been fixed in version 1.8.7-r1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00252,"percentile":0.16959,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://github.com/saitoha/libsixel/security/advisories/GHSA-j6m5-2cc7-3whc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/saitoha/libsixel/releases/tag/v1.8.7-r1","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":3.39},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"saitoha","affectedVersions":[{"vendor":"saitoha","product":"libsixel","versions":["< 1.8.7-r1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-16T13:54:16.495174Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-22746","exploited":false,"provenance":"source"}}