Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.5

CVE-2026-93018: Perl Imager <1.036 can leak memory via bad images

CVE-2026-93018 · published 2 months ago
Summary

The Perl Imager library versions before 1.036, provided in the Debian and Canonical libimager-perl packages, can unintentionally expose parts of the program's memory when it processes a specially crafted image file. This could allow an attacker who supplies such an image to see data that should remain private. Upgrade the libimager-perl package to version 1.036 or later to stop the leak.

What to do
  • Update debian libimager-perl to version 1.036+dfsg-1.
Affected software
Ecosystem VendorProductAffected versions
Debian:14 debian libimager-perl < 1.036+dfsg-1
Fix: upgrade to 1.036+dfsg-1
Debian:12 debian libimager-perl All versions
Ubuntu:16.04:LTS canonical libimager-perl All versions
Original advisory text
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
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
5.5 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-193Off-by-one Error
CWE-908Use of Uninitialized Resource
Timeline
Published18 Sep 2026
Updated22 Nov 2026
First seen18 Sep 2026
Track software like this
Free during beta