Security Advisories (1)
CVE-2026-112202 (2026-10-20)

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.

NAME

Imager::File::ICO - read MS Icon files

SYNOPSIS

use Imager;

my $img = Imager->new;
$img->read(file=>"foo.ico")
  or die $img->errstr;

my @imgs = Imager->read_multi(file => "foo.ico")
  or die Imager->errstr;

$img->write(file => "foo.ico")
  or die $img->errstr;

Imager->write_multi({ file => "foo.ico" }, @imgs)
  or die Imager->errstr;

DESCRIPTION

Imager's MS Icon support is documented in Imager::Files.

AUTHOR

Tony Cook <tonyc@cpan.org>

SEE ALSO

Imager, Imager::Files.