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

libsixelはkmiyaのsixelに由来するSIXELエンコーダ/デコーダの実装です。バージョン1.8.7-r1までにおいて、SIXELパーサの画像バッファ倍増ループで符号付き整数オーバーフローが発生し、sixel_decode_raw_implでヒープの境界外書き込みにつながる可能性があります。context-pos_xは各SIXEL文字のrepeat_countによって増加しますが、上限チェックがありません。pos_xがINT_MAXに近づくと、画像バッファのサイズを決定するために使用される「pos_x + repeat_count」の式が符号付き整数オーバーフローを引き起こします。オーバーフローの巻き戻り方によっては、過大なサイズのバッファを拒否すべきリサイズチェックを回避でき、その後の書き込みがimage-dataへの大きな攻撃者影響下のオフセットを計算し、割り当てサイズを超えて書き込みを実行します。この脆弱性は、攻撃者が提供するSIXELデータをデコードするあらゆる呼び出し元(img2sixelを含む)から悪用可能です。この脆弱性はバージョン1.8.7-r2で修正されました。

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

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

公表日 2026年5月14日0:00
登録日 2026年5月18日11:25
最終更新日 2026年5月18日11:25
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 0.11.0 以上 1.8.7-r2 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2026年05月18日]
  掲載
2026年5月18日11:25

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

libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. From to 1.8.7-r1, a signed integer overflow in the SIXEL parser's image-buffer doubling loop can lead to an out-of-bounds heap write in sixel_decode_raw_impl. context->pos_x grows by repeat_count on every sixel character with no upper bound check. Once pos_x approaches INT_MAX, the expression "pos_x + repeat_count" used to size the image buffer overflows signed int. Depending on how the overflow wraps, the resize check that should reject oversized buffers can be bypassed, after which a subsequent write computes a large attacker-influenced offset into image->data and writes past the allocation. Reachable from any caller that decodes attacker-supplied SIXEL data, including img2sixel. This vulnerability is fixed in 1.8.7-r2.

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