Hayaki Saito (saitoha)のlibsixelにおける複数の脆弱性
タイトル Hayaki Saito (saitoha)のlibsixelにおける複数の脆弱性
概要

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で修正されました。

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

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

公表日 2026年4月14日0:00
登録日 2026年4月24日11:37
最終更新日 2026年4月24日11:37
CVSS3.0 : 重要
スコア 7.1
ベクター CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
影響を受けるシステム
Hayaki Saito (saitoha)
libsixel 1.8.7-r1 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年04月24日]
  掲載
2026年4月24日11:37

NVD脆弱性情報
CVE-2026-33020
概要

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.

公表日 2026年4月15日7:16
登録日 2026年4月15日11:41
最終更新日 2026年4月23日23:47
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:* 1.8.7-r1
関連情報、対策とツール
共通脆弱性一覧