Hayaki Saito (saitoha)のlibsixelにおける複数の脆弱性
| Title |
Hayaki Saito (saitoha)のlibsixelにおける複数の脆弱性
|
| Summary |
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で修正されました。
|
| Possible impacts |
当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
May 14, 2026, midnight |
| Registration Date |
May 18, 2026, 11:25 a.m. |
| Last Update |
May 18, 2026, 11:25 a.m. |
|
CVSS3.0 : 重要
|
| Score |
7.8
|
| Vector |
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected System
| Hayaki Saito (saitoha) |
|
libsixel 1.4.4 以上 1.8.7-r2 未満
|
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年05月18日] 掲載 |
May 18, 2026, 11:25 a.m. |
NVD Vulnerability Information
CVE-2026-44636
| Summary |
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.
|
| Publication Date |
May 15, 2026, 5:17 a.m. |
| Registration Date |
May 17, 2026, 4:09 a.m. |
| Last Update |
May 16, 2026, 10:16 a.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:* |
1.4.4 |
|
|
1.8.7-r2 |
Related information, measures and tools
Common Vulnerabilities List