{"id":"CVE-2026-112202","kind":"vulnerability","aliases":["CVE-2026-112202"],"related":[],"title":"Perl Imager::File::GIF: out-of-bounds read leaks heap memory from crafted GIF","description":"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 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.","summary":"Imager::File::GIF before 1.006 for Perl reads past a heap buffer when consolidating GIF palettes with gif_consolidate enabled. A crafted GIF can leak adjacent heap bytes into decoded output or crash the process.","severity":"low","cvss":null,"epss":0.00229,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["image-processing","imager","package","perl"],"not_affected_if":["default-config","no-untrusted-gif-input"],"how_to_check":"- `perl -MImager::File::GIF -e 'print $Imager::File::GIF::VERSION'` to read the installed version\n- Search application code for `gif_consolidate` set to a true value\n- Check whether the bundled Imager distribution in use includes the GIF reader","fix":"- Upgrade Imager::File::GIF to `1.006` or later\n- Or stop passing `gif_consolidate => 1` when reading GIFs","status":"open","published_at":"2026-10-20T23:17:01+00:00","first_seen_at":"2026-10-23T21:57:27+00:00","triaged_at":"2026-10-25T05:04:07+00:00","updated_at":"2026-10-25T05:04:07+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-10-25T05:04:07Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade Imager::File::GIF to `1.006` or later\n- Or stop passing `gif_consolidate => 1` when reading GIFs","reach":"internet","title":"Perl Imager::File::GIF: out-of-bounds read leaks heap memory from crafted GIF","impact":"low","summary":"Imager::File::GIF before 1.006 for Perl reads past a heap buffer when consolidating GIF palettes with gif_consolidate enabled. A crafted GIF can leak adjacent heap bytes into decoded output or crash the process.","category":"package","nicknames":[],"who_cares":["perl","imager","image-processing"],"confidence":0.8,"needs_auth":"no","worst_case":"Adjacent heap memory leaks into output images; process may crash","analyst_note":"","how_to_check":"- `perl -MImager::File::GIF -e 'print $Imager::File::GIF::VERSION'` to read the installed version\n- Search application code for `gif_consolidate` set to a true value\n- Check whether the bundled Imager distribution in use includes the GIF reader","needs_analyst":false,"not_affected_if":["default-config","no-untrusted-gif-input"],"who_is_affected":"Only code that reads GIF files with the gif_consolidate option turned on is exposed, and only when it reads images an outside party can supply. The default GIF reader is not affected, so services that never set gif_consolidate can skip it. Teams that run Perl image-processing pipelines on user uploads should check their Imager version.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"low"},"cost_usd":0.000624,"input_tokens":3435,"output_tokens":561,"severity_before":"unknown"},"analyst_status":null,"analyst_note":null,"search":"'-112202':18A,21A '-2026':17A,20A '1':84C '1.006':32B,68C 'adjac':53B,140C 'affect':122C 'alloc':108C 'allow':71C 'attack':133C 'beyond':105C 'bound':8A,75C,98C 'buffer':39B 'bundl':127C 'byte':55B,112C 'check':93C 'code':125C 'colour':95C 'consolid':41B,46B,78C,83C 'copi':110C 'craft':14A,49B,136C 'crash':60B,149C 'cve':16A,19A 'decod':57B,145C 'default':117C 'disclos':139C 'distribut':131C 'enabl':47B 'file':3A,29B,64C 'gif':4A,15A,30B,42B,45B,50B,65C,79C,82C,118C,137C 'heap':11A,38B,54B,107C,141C 'imag':2A,23B,25B,28B,63C,80C,89C,130C 'image-process':22B 'indic':86C 'leak':10A,52B 'low':102C 'may':148C 'memori':12A,142C 'out-of-bound':5A,72C 'output':58B,114C,146C 'packag':26B 'palett':43B,85C 'past':36B 'perl':1A,27B,34B,70C 'pixel':115C 'process':24B,62B,151C 'read':9A,35B,76C,104C 'reader':119C 'readgif':101C 'routin':103C 'ship':126C 'suppli':134C 'tabl':96C 'use':91C 'version':66C 'without':92C","nicknames":[],"mitigations":[],"who_affected":"Only code that reads GIF files with the gif_consolidate option turned on is exposed, and only when it reads images an outside party can supply. The default GIF reader is not affected, so services that never set gif_consolidate can skip it. Teams that run Perl image-processing pipelines on user uploads should check their Imager version.","tier":"C","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-20T23:17:01+00:00","kev":null,"cvss_vector":null,"cvss_by":null,"poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-112202","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-112202","severity":null,"published_at":"2026-10-20T23:17:01+00:00","modified_at":"2026-10-22T17:21:57+00:00","first_seen_at":"2026-10-23T21:57:27+00:00","fetched_at":"2026-10-23T22:29:01+00:00","note":null},{"source":"epss","external_id":"CVE-2026-112202","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-112202","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-24T13:15:55+00:00","fetched_at":"2026-10-24T13:15:55+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}