Security Advisories (2)
CVE-2026-93018 (2026-09-18)

Imager versions before 1.036 for Perl disclose uninitialised heap memory reading a paletted image with pixel indexes past its colour map in i_gpix_p and i_glin_p. The palette is allocated uninitialised, and only the entries a reader adds count as populated. The TGA reader stores pixel indexes without checking them against the colour map. i_gpix_p() rejects only an index greater than the count, so an index equal to it reads the first unpopulated entry, and getpixel() returns it. i_glin_p() skips any index at or beyond the count without writing that pixel to the caller's buffer. The palette-to-RGB conversion reads each row through an uninitialised buffer, so those pixels of the converted image hold prior heap contents. Reading an attacker-supplied image through Imager->read() and then fetching its pixels or converting it to RGB discloses process heap memory.

CVE-2026-93019 (2026-09-18)

Imager versions before 1.036 for Perl exit the process reading a TGA with a colour map length of 32768 or more in tga_palette_read. The reader unpacks the two-byte colour map length into a signed short, so a length of 32768 or more becomes negative. tga_palette_read() casts that value to size_t and asks mymalloc() for a size near SIZE_MAX. The allocation fails and Imager's allocator calls exit(3). Reading an attacker-supplied file through Imager->read() triggers an uncatchable exit.

NAME

Imager::Filter::Mandelbrot - filter that renders the Mandelbrot set.

SYNOPSIS

use Imager;
use Imager::Filter::Mandelbrot;

$img->filter(type=>'mandelbrot', ...);

DESCRIPTION

This is a expansion of the mandelbrot dynamically loadable filter provided in dynfilt in previous releases of Imager.

Valid filter parameters are:

  • minx, maxx - the range of x values to render. Defaults: -2.5, 1.5.

  • miny, maxy - the range of y values to render. Defaults: -1.5, 1.5

  • maxiter - the maximum number of iterations to perform when checking if the sequence tend towards infinity.

AUTHOR

Original by Arnar M. Hrafnkelsson.

Adapted and expanded by Tony Cook <tonyc@cpan.org>

SEE ALSO

Imager, Imager::Filters.