| タイトル | Hayaki Saito (saitoha)のlibsixelにおける複数の脆弱性 |
|---|---|
| 概要 | libsixelはkmiyaのsixelに由来するSIXELエンコーダ/デコーダの実装です。バージョン1.8.7-r1までにおいて、sixel_encode_highcolorの割り当てサイズ計算で符号付き整数のオーバーフローが発生し、ヒープバッファオーバーフローを引き起こす可能性があります。公開されているsixel_encodeのエントリポイントは、幅と高さが0より大きいことのみを検証しており、上限は設けていません。幅と高さは、paletted_pixelsおよびnormalized_pixelsの割り当てサイズを計算する際に単純なint型として乗算されます。幅と高さの積がINT_MAX(約21.5億)を超えるピクセルバッファのエンコードをlibsixelに要求すると、割り当てサイズがラップし、正しいラップが起きるとmallocはエンコーダが想定するより大幅に小さいバッファで成功し、エンコーダはヒープ割り当ての末尾を越えて書き込みを行います。この脆弱性はバージョン1.8.7-r2で修正されました。 |
| 想定される影響 | 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| 対策 | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月14日0:00 |
| 登録日 | 2026年5月18日11:25 |
| 最終更新日 | 2026年5月18日11:25 |
| CVSS3.0 : 重要 | |
| スコア | 7.8 |
|---|---|
| ベクター | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Hayaki Saito (saitoha) |
| libsixel 1.4.4 以上 1.8.7-r2 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年05月18日] 掲載 |
2026年5月18日11:25 |
| 概要 | libsixel is a SIXEL encoder/decoder implementation derived from kmiya's sixel. From to 1.8.7-r1, signed integer overflow in sixel_encode_highcolor's allocation size calculation can lead to a heap buffer overflow. The public sixel_encode entry point validates only that width and height are greater than zero, with no upper bound. width and height are multiplied as plain int when computing the allocation size for paletted_pixels and normalized_pixels. Any caller that asks libsixel to encode a pixel buffer with width times height greater than INT_MAX (about 2.15 billion) will hit a wrapped allocation size; under the right wrap, the malloc succeeds with a buffer much smaller than the encoder expects, and the encoder writes past the end of the heap allocation. This vulnerability is fixed in 1.8.7-r2. |
|---|---|
| 公表日 | 2026年5月15日5:17 |
| 登録日 | 2026年5月17日4:09 |
| 最終更新日 | 2026年5月16日10:16 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:* | 1.4.4 | 1.8.7-r2 | |||