5.3medium
Imager::File::GIF versions through 1.002 for Perl allow a heap out of bounds (OOB) write on crafted multi-frame GIF files
- Severity
- 5.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CPANSec
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Imager-File-GIF | up to 1.002 | CVE List |
| tonyc imager::file::gif | before 1.003 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Las versiones de Imager::File::GIF hasta la 1.002 para Perl permiten una escritura fuera de límites del montón (OOB) en archivos GIF multifotograma manipulados. La función i_readgif_multi_low de Imager::File::GIF asigna un único búfer por fila, GifRow, dimensionado para el ancho de pantalla global del GIF, ’SWidth’, y lo reutiliza en cada imagen del archivo. La rama de coincidencia de página valida que Image.Width + Image.Left > SWidth antes de cada escritura de DGifGetLine, pero la rama paralela de omisión de imagen en imgif.c:790-805 llama a DGifGetLine(GifFile, GifRow, Width) sin dicha verificación.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-8454 changed 2026-05-15 | CVE Terms of Use |
| NVD | CVE-2026-8454 changed 2026-10-26 | Public domain |