| タイトル | Hayaki Saito (saitoha)のlibsixelにおける複数の脆弱性 |
|---|---|
| 概要 | 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で修正されました。 |
| 想定される影響 | 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 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:H/I:N/A:H |
| Hayaki Saito (saitoha) |
| libsixel 1.8.7-r1 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年04月24日] 掲載 |
2026年4月24日11:37 |
| 概要 | 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. |
|---|---|
| 公表日 | 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 | ||||