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

libsixelはkmiyaのsixelに由来するSIXELエンコーダ/デコーダの実装です。バージョン1.8.7以前には、img2sixelの--cropオプション処理で整数オーバーフローが発生し、範囲外のヒープ読み取りが生じる脆弱性が存在していました。この脆弱性では、正の座標がINT_MAXまでオーバーフロー安全な境界チェックなしに受け入れられていました。sixel_encoder_do_clip()内で、clip_xがINT_MAXのときに式clip_w + clip_xが大きな負の値にオーバーフローし、境界ガードが完全にスキップされ、そのままの座標がsixel_frame_clip()からclip()へ渡されます。このclip()は画像バッファを大幅に超えた場所を指すソースポインタを算出し、memmove()に渡します。攻撃者は特別に細工したcrop引数と任意の有効な画像を組み合わせて供給することで、ヒープの範囲外読み取りを誘発し、確実にクラッシュを引き起こし、潜在的に情報漏洩が発生する恐れがあります。この問題はバージョン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:H/I:N/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-33019
Summary

libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. Versions 1.8.7 and prior contain an integer overflow leading to an out-of-bounds heap read in the --crop option handling of img2sixel, where positive coordinates up to INT_MAX are accepted without overflow-safe bounds checking. In sixel_encoder_do_clip(), the expression clip_w + clip_x overflows to a large negative value when clip_x is INT_MAX, causing the bounds guard to be skipped entirely, and the unclamped coordinate is passed through sixel_frame_clip() to clip(), which computes a source pointer far beyond the image buffer and passes it to memmove(). An attacker supplying a specially crafted crop argument with any valid image can trigger an out-of-bounds read in the heap, resulting in a reliable crash and potential information disclosure. 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