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

Summary

CVECVE-2026-112202
StatePUBLISHED
AssignerCPANSec
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-20 23:17:01 UTC
Updated2026-10-21 03:17:19 UTC
DescriptionImager::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.

Risk And Classification

Problem Types: CWE-125 | CWE-125 CWE-125 Out-of-bounds Read

References

ReferenceSourceLinkTags
github.com/tonycoz/imager/commit/dec96f12b3d8a7fd94e86264953a5e4919dd603... 9b29abf9-4ab0-4765-b253-1875cd9b441e github.com
metacpan.org/release/TONYC/Imager-File-GIF-1.006/changes 9b29abf9-4ab0-4765-b253-1875cd9b441e metacpan.org
www.openwall.com/lists/oss-security/2026/10/21/1 af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
metacpan.org/release/TONYC/Imager-1.040/changes 9b29abf9-4ab0-4765-b253-1875cd9b441e metacpan.org
github.com/tonycoz/imager/security/advisories/GHSA-v4hp-5h6w-9897 9b29abf9-4ab0-4765-b253-1875cd9b441e github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: kumar-Prakash07 (en)

Additional Advisory Data

Solutions

CNA: Upgrade to Imager-File-GIF 1.006 or later, or to Imager 1.040 or later if the bundled copy is in use.

Workarounds

CNA: Disable the gif_consolidate read option when processing untrusted GIF images.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report