# CVE-2026-112202: Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2026-10-20T22:37:43.477Z
- Modified: 2026-10-30T13:18:28.917Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Imager-File-GIF: before 1.006
- Imager: before 1.040

## 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>

## Sources

- CVE List: [CVE-2026-112202](https://www.cve.org/CVERecord?id=CVE-2026-112202), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-112202](https://nvd.nist.gov/vuln/detail/CVE-2026-112202), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-112202 · Whole record: https://cve.day/CVE-2026-112202.json · Rebuilt by cve.day 2026-11-25T22:59:46.519Z
