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 | Vendor | Product | Affected 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.
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.
References
- https://github.com/tonycoz/imager/security/advisories/GHSA-j7v7-cm4g-vrgf Vendor Advisory
- https://metacpan.org/release/TONYC/Imager-1.036/changes Vendor Advisory
- https://github.com/tonycoz/imager/commit/dcf0a52e2732399d42ab44d98af6934658d068e... Patch
- https://security-tracker.debian.org/tracker/CVE-2026-93018 Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/09/18/8 URL
- https://cpan.org/modules URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/93xxx/CVE-2026-93018... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-93018 Vendor Advisory
- https://ubuntu.com/security/CVE-2026-93018 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2026-93018 Third Party Advisory
- https://github.com/tonycoz/imager Product
- https://lists.security.metacpan.org/cve-announce/msg/43654795/ Third Party Advisory
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
Type
CWE-193Off-by-one Error
CWE-908Use of Uninitialized Resource
Timeline
Published18 Sep 2026
Updated22 Nov 2026
First seen18 Sep 2026
Sources
CVE-2026-93018 · NVD
CVE-2026-93018 · MITRE
DEBIAN-CVE-2026-93018 · OSV
CVE-2026-93018 · OSV
GHSA-j7v7-cm4g-vrgf · GHSA
UBUNTU-CVE-2026-93018 · OSV
Track software like this
Free during beta