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

Published Oct 20, 2026
·
Updated

Imager::File::GIF versions before 1.006 for Perl allow out-of-bounds reads when consolidating GIF images.

With gifconsolidate => 1, palette indices from the image are used without checking the colour table's bounds. The ireadgiflow 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.

Affected Software

1 affected component
Imager Imager::File::GIF<1.006

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Imager::File::GIF to a version that resolves this vulnerability.

    Fixed in 1.006
  2. Upgrade

    Upgrade Imager to a version that resolves this vulnerability.

    Fixed in 1.040

Event History

Oct 20, 2026
CVE Published
via MITRE·10:37 PM
Data Sourced
via MITRE·10:37 PM
RemedyDescriptionWeakness

Frequently Asked Questions

1

Which deployments are affected in practice?

Only code that reads GIFs with the gif_consolidate option set to 1 is affected. The default GIF reader is not affected; the vulnerable code is present both in Imager::File::GIF releases before 1.006 and in bundled Imager distributions containing that code.

2

What does an attacker need to exploit this issue?

An attacker needs to supply a crafted GIF that is processed by the vulnerable GIF reader with gif_consolidate enabled. Malicious palette indices can cause reads beyond the colour-table heap allocation during image consolidation.

3

What is the impact of successful exploitation?

Bytes adjacent to the heap allocation can be copied into decoded output pixels, potentially disclosing heap memory to whoever can access that output. The crafted GIF may also crash the processing application.

4

What can be done if an update cannot be applied immediately?

Avoid processing untrusted GIFs with gif_consolidate set to 1. Using the default GIF reader avoids the affected consolidation path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203