# CVE-2026-112202: Imager::File::GIF out-of-bounds read in GIF consolidation

Source: https://junglewise.ai/threats/cve-2026-112202-imager-file-gif-versions-before-1-006-for-perl-allow-out-of  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-20. Updated: 2026-10-20  
License: CC BY 4.0 with a link back

CVE-2026-112202 · Severity: info · Published 2026-10-20

Imager::File::GIF is a Perl library for reading and manipulating image files, including GIF format. When processing GIF images with the consolidation feature enabled, an attacker can craft a malicious GIF file to read memory from the application's heap and potentially crash the process. This could lead to information disclosure or denial of service.

Technologies: [Tony Cook Imager](https://junglewise.ai/threats/technologies/imager), [Tony Cook Imager::File::GIF](https://junglewise.ai/threats/technologies/imager-file-gif). Vendors: [Tony Cook](https://junglewise.ai/threats/vendors/tony-cook).

## Quick answers

**Is CVE-2026-112202 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-112202 being exploited in the wild.

**How severe is CVE-2026-112202?** Informational severity, published 20 October 2026.

**Which products and versions are affected?** Tony Cook Imager versions with bundled GIF code before the patch date; Tony Cook Imager::File::GIF before 1.006.

**Is there a fix for CVE-2026-112202?** Yes: fixed in Imager::File::GIF 1.006 and later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-112202 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-112202?** Check whether you run Tony Cook Imager or Tony Cook Imager::File::GIF at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in Imager::File::GIF 1.006 and later

## Technical details

An out-of-bounds read vulnerability exists in the i_readgif_low routine when gif_consolidate is enabled. Palette indices from a GIF image are used without bounds checking against the color table, allowing reads beyond the allocated heap buffer. The vulnerability affects Imager::File::GIF as a standalone module and the bundled GIF reader in the Imager distribution; the default GIF reader without consolidation is not affected.

## Affected products

- Tony Cook Imager::File::GIF before 1.006
- Tony Cook Imager versions with bundled GIF code before the patch date

## Timeline

- 2026-10-20: disclosed

## References

- [https://cpan.org/modules](https://cpan.org/modules)
- [https://github.com/tonycoz/imager/commit/dec96f12b3d8a7fd94e86264953a5e4919dd6036.patch](https://github.com/tonycoz/imager/commit/dec96f12b3d8a7fd94e86264953a5e4919dd6036.patch)

## Related threats

- [Imager heap buffer overflow in i_gsampf_fp fetching float samples](https://junglewise.ai/threats/cve-2026-102505-imager-versions-before-1-037-for-perl-overflow-a-heap-buffer)
- [TONYC Imager unsigned to signed conversion error in EXIF parsing](https://junglewise.ai/threats/cve-2026-14454-tonyc-imager-unsigned-to-signed-conversion-error-in-exif-parsing)
- [Imager Perl library heap out-of-bounds write in GIF parser](https://junglewise.ai/threats/cve-2026-8669-imager-perl-library-heap-out-of-bounds-write-in-gif-parser)
- [Imager::File::GIF heap out-of-bounds write in i_readgif_multi_low](https://junglewise.ai/threats/cve-2026-8454-imager-file-gif-heap-out-of-bounds-write-in-i-readgif-multi-low)
