製品・ソフトウェアに関する情報
Hayaki Saito (saitoha)のlibsixelにおける複数の脆弱性
Title Hayaki Saito (saitoha)のlibsixelにおける複数の脆弱性
Summary

libsixelはkmiyaのsixelを基にしたSIXELエンコーダー/デコーダーの実装です。バージョン1.8.7以前には整数オーバーフローが存在し、frame.cのsixel_frame_convert_to_rgb888()関数においてヒープバッファオーバーフローを引き起こします。ここではパレット画像(PAL1、PAL2、PAL4)の割り当てサイズとポインタオフセットの計算がint型の算術演算で行われ、その後size_tにキャストされます。ピクセル数がINT_MAX / 4を超える画像の場合、このオーバーフローにより変換バッファのヒープ割り当てサイズが不足し、正規化サブバッファのポインタオフセットが負の値となります。その後、sixel_helper_normalize_pixelformat()が不正なポインタから画像全体のデータを書き込み、ASANによって大規模なヒープ破損が確認されます。攻撃者が特別に細工された大きなパレットPNGを提供すると、被害者プロセスのヒープを破損させ、確実なクラッシュと潜在的な任意コード実行を引き起こす可能性があります。この問題はバージョン1.8.7-r1で修正されました。

Possible impacts 当該ソフトウェアが扱う情報について、外部への漏えいは発生しません。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 14, 2026, midnight
Registration Date April 24, 2026, 11:37 a.m.
Last Update April 24, 2026, 11:37 a.m.
CVSS3.0 : 重要
Score 7.1
Vector CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Affected System
Hayaki Saito (saitoha)
libsixel 1.8.7-r1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
No Changed Details Date of change
1 [2026年04月24日]
  掲載
April 24, 2026, 11:37 a.m.

NVD Vulnerability Information
CVE-2026-33020
Summary

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.

Publication Date April 15, 2026, 7:16 a.m.
Registration Date April 15, 2026, 11:41 a.m.
Last Update April 23, 2026, 11:47 p.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:* 1.8.7-r1
Related information, measures and tools
Common Vulnerabilities List