Description
Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images. With `gif_consolidate => 1`, palette indices from the image are used without checking the colour table's bounds. The i_readgif_low routine reads beyond the heap allocation and copies the bytes into output pixels. The default GIF reader is not affected. The same code ships bundled in the Imager distribution. An attacker supplying a crafted GIF can disclose adjacent heap memory through the decoded output and may crash the process.
Weaknesses
- CWE-125 — CWE-125 Out-of-bounds Read
Affected products
| Vendor | Product | Versions |
|---|---|---|
| — | — | 0 to <1.006 [affected] |
| — | — | 0 to <1.040 [affected] |
References
- https://github.com/tonycoz/imager/commit/dec96f12b3d8a7fd94e86264953a5e4919dd6036.patch (patch)
- https://metacpan.org/release/TONYC/Imager-File-GIF-1.006/changes (release-notes)
- https://metacpan.org/release/TONYC/Imager-1.040/changes (release-notes)
- https://github.com/tonycoz/imager/security/advisories/GHSA-v4hp-5h6w-9897 (vendor-advisory)
- http://www.openwall.com/lists/oss-security/2026/10/21/1
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 21 Oct 2026 07:04 UTC.