CVE-2026-93018: CWE-908 Use of Uninitialized Resource
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.
AI Analysis
Technical Summary
CVE-2026-93018 affects Imager for Perl versions prior to 1.036. The vulnerability arises from the use of uninitialized resources when reading paletted images with pixel indexes that are equal to the size of the color map. The palette is allocated without initialization, and the TGA image reader does not validate pixel indexes against the color map size properly. Specifically, the i_gpix_p() function rejects only indexes greater than the count, allowing an index equal to the count to read uninitialized palette entries. The i_glin_p() function skips indexes at or beyond the count without writing pixels, but the palette-to-RGB conversion reads from an uninitialized buffer, causing pixels in the converted image to contain prior heap memory contents. This leads to disclosure of process heap memory when an attacker supplies a malicious image and then accesses pixel data or converts the image to RGB.
Potential Impact
An attacker can cause the application to disclose uninitialized heap memory by supplying a crafted paletted image with pixel indexes equal to the color map size. This memory disclosure can reveal sensitive information from the process heap, potentially exposing data that should remain confidential. There is no indication of code execution or other impacts beyond information disclosure.
Mitigation Recommendations
No vendor advisory or patch information is provided. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted paletted images with Imager versions before 1.036 or implement input validation to reject images with pixel indexes equal to or exceeding the color map size.
CVE-2026-93018: CWE-908 Use of Uninitialized Resource
Description
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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-93018 affects Imager for Perl versions prior to 1.036. The vulnerability arises from the use of uninitialized resources when reading paletted images with pixel indexes that are equal to the size of the color map. The palette is allocated without initialization, and the TGA image reader does not validate pixel indexes against the color map size properly. Specifically, the i_gpix_p() function rejects only indexes greater than the count, allowing an index equal to the count to read uninitialized palette entries. The i_glin_p() function skips indexes at or beyond the count without writing pixels, but the palette-to-RGB conversion reads from an uninitialized buffer, causing pixels in the converted image to contain prior heap memory contents. This leads to disclosure of process heap memory when an attacker supplies a malicious image and then accesses pixel data or converts the image to RGB.
Potential Impact
An attacker can cause the application to disclose uninitialized heap memory by supplying a crafted paletted image with pixel indexes equal to the color map size. This memory disclosure can reveal sensitive information from the process heap, potentially exposing data that should remain confidential. There is no indication of code execution or other impacts beyond information disclosure.
Mitigation Recommendations
No vendor advisory or patch information is provided. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted paletted images with Imager versions before 1.036 or implement input validation to reject images with pixel indexes equal to or exceeding the color map size.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-09-17T14:56:50.796Z
- State
- PUBLISHED
Threat ID: 6aad449d55bf5e2cf517a929
Added to database: 09/18/2026, 14:03:09 UTC
Last enriched: 09/18/2026, 14:16:48 UTC
Last updated: 09/19/2026, 03:40:04 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.