| Title | TONYC (Tony Cook)のImager::File::GIFにおける境界外書き込みに関する脆弱性 |
|---|---|
| Summary | Perl用のImager::File::GIFバージョン1.002までには、細工されたマルチフレームGIFファイルによりヒープの境界外書き込み(OOB)が可能な脆弱性があります。Imager::File::GIFの関数i_readgif_multi_lowでは、GIFのグローバルスクリーン幅である'SWidth'に対して1行あたりのバッファGifRowを1つだけ割り当て、それをファイル内のすべての画像で再利用しています。ページマッチの分岐では、各DGifGetLine書き込みの前にImage.Width + Image.Left SWidthのチェックを行っていますが、imgif.cの790-805行にある並列のスキップ画像分岐は、そのようなチェックを行わずにDGifGetLine(GifFile, GifRow, Width)を呼び出しています。 |
| Possible impacts | 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアの一部が停止する可能性があります。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 |
| Solution | 正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | May 15, 2026, midnight |
| Registration Date | May 20, 2026, 1:21 p.m. |
| Last Update | May 20, 2026, 1:21 p.m. |
| CVSS3.0 : 警告 | |
| Score | 5.3 |
|---|---|
| Vector | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L |
| No | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年05月20日] 掲載 |
May 20, 2026, 1:21 p.m. |
| Summary | Imager::File::GIF versions through 1.002 for Perl allow a heap out of bounds (OOB) write on crafted multi-frame GIF files. Imager::File::GIF's i_readgif_multi_low allocates a single per-row buffer GifRow sized for the GIF's global screen width 'SWidth' and reuses it across every image in the file. The page-match branch validates Image.Width + Image.Left > SWidth before each DGifGetLine write, but the parallel skip-image branch at imgif.c:790-805 calls DGifGetLine(GifFile, GifRow, Width) with no such check. |
|---|---|
| Publication Date | May 15, 2026, 9:17 p.m. |
| Registration Date | May 17, 2026, 4:12 a.m. |
| Last Update | May 19, 2026, 3:12 a.m. |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:tonyc:imager\:\:file\:\:gif:*:*:*:*:*:perl:*:* | 1.003 | ||||