Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-112202 EUVD-2026-106871

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

Published Oct 20, 2026 · Updated Oct 30, 2026 · 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.

Affected products

VendorProductAffectedFixed
— Imager-File-GIF < 1.006 1.006
— Imager < 1.040 1.040

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libimager-perl 1.040+dfsg-1 —
Debian 13 libimager-perl No fix yet —
Debian 12 libimager-perl No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libimager-perl No fix yet —
Ubuntu 26.04 LTS libimager-perl No fix yet —
Ubuntu 24.04 LTS libimager-perl No fix yet —
Ubuntu 22.04 LTS libimager-perl No fix yet —
Ubuntu 20.04 LTS libimager-perl No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS libimager-perl No fix yet —
Ubuntu 16.04 LTS libimager-perl No fix yet —

References