{"id":"CVE-2026-112202","title":"Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images","summary":"Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images.\n\nWith `gif_consolidate => 1`, palette indices from the image are used without checking the colour table's bounds. The i_readgif_low…","severity":"none","cwe":["CWE-125"],"product":"Imager-File-GIF","affected":["Imager-File-GIF < 1.006","Imager < 1.040"],"published":"2026-10-20","updated":"2026-10-21","sourceUpdated":"2026-10-21T02:11:40.235Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-112202","references":[{"url":"https://github.com/tonycoz/imager/commit/dec96f12b3d8a7fd94e86264953a5e4919dd6036.patch"},{"url":"https://metacpan.org/release/TONYC/Imager-File-GIF-1.006/changes"},{"url":"https://metacpan.org/release/TONYC/Imager-1.040/changes"},{"url":"https://github.com/tonycoz/imager/security/advisories/GHSA-v4hp-5h6w-9897"}],"tags":["cve.org"],"ingestedAt":"2026-10-20T23:33:47.233Z","slug":"CVE-2026-112202","body":"## Overview\n\nImager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images.\n\nWith `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.\n\nThe same code ships bundled in the Imager distribution.\n\nAn attacker supplying a crafted GIF can disclose adjacent heap memory through the decoded output and may crash the process.\n\n## Affected\n\n- `Imager-File-GIF < 1.006`\n- `Imager < 1.040`\n\n## Remediation\n\nUpgrade to Imager-File-GIF 1.006 or later, or to Imager 1.040 or later if the bundled copy is in use.\n\n### Workarounds\n\nDisable the gif_consolidate read option when processing untrusted GIF images.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}