Imager versions through 1.030 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.

Project Subscriptions

Vendors Products
Advisories

No advisories yet.

Fixes

Solution

Upgrade to Imager 1.031.


Workaround

No workaround given by the vendor.

History

Fri, 15 May 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Tonyc
Tonyc imager
Vendors & Products Tonyc
Tonyc imager

Fri, 15 May 2026 14:30:00 +0000

Type Values Removed Values Added
Description Imager versions through 1.030 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.
Title Imager versions through 1.030 for Perl allow a heap out of bounds (OOB) write on crafted multi-frame GIF files
Weaknesses CWE-787
References

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-05-15T15:40:04.360Z

Reserved: 2026-05-15T11:19:04.001Z

Link: CVE-2026-8669

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-05-15T15:16:57.043

Modified: 2026-05-15T15:16:57.043

Link: CVE-2026-8669

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-15T15:30:02Z

Weaknesses