Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft paletted image with index at/beyond palette count
-
DeliverySubmit to app that calls Imager->read()
-
Exploiti_gpix_p/i_glin_p reads unpopulated/uninitialised palette entry
-
Executiongetpixel or RGB conversion returns heap bytes
-
ImpactExfiltrate leaked process memory from output
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
|
| Exploitation Conditions | Requires that an application using Imager before 1.036 read an attacker-controlled paletted image via Imager->read() and then fetch its pixels (getpixel/i_gpix_p, i_glin_p) or convert it to RGB. The concrete trigger is a paletted image (the TGA reader is called out) whose pixel indexes are at or beyond the number of populated colour-map entries - i_gpix_p rejected only index>count (off-by-one), so index==count returns an unpopulated palette slot and i_glin_p leaves the row buffer uninitialised. Limiting factors: attack is local (AV:L) and needs user/application interaction to load and read back the malicious image (UI:R); it is unauthenticated at the code level (PR:N) but only exploitable where a workflow both parses untrusted images and returns pixel/RGB data to the attacker. Impact is confined to reading uninitialised heap - no code execution, no write, no availability impact. |
| Impact | Signals are consistent and point to a genuine but low-urgency information-disclosure bug, not a priority emergency. The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N, base 5.5 MEDIUM) reflects local attack surface: exploitation requires that a target application load an attacker-supplied image through Imager->read() and then read its pixels or convert to RGB (UI:R). EPSS is very low (0.18%, 8th percentile) and CISA SSVC scores Exploitation=none, Automatable=no, Technical Impact=partial - all corroborating limited real-world exploitation pressure. There is no CISA KEV listing and no public exploit code: no public exploit identified at time of analysis (though the fix commit ships a regression test setting a bad palette index, which is close to a working PoC of the primitive). The one nuance to verify: impact is rated C:H, which is defensible because uninitialised process heap can contain secrets (keys, tokens, other users' image data), but the disclosure is a small, non-deterministic window of adjacent heap rather than targeted memory read - many analysts would argue C:L. This is a real bug worth patching in image-processing pipelines that ingest untrusted files, but it is a high-CVSS-relative-to-real-risk case only in the sense that C:H may overstate a bounded uninitialised-memory leak; treat it as routine-priority, not drop-everything. |
| Exploit ScenarioDerived | An attacker submits a crafted paletted image (e.g. a TGA whose pixel indexes reference palette slots at or beyond the populated colour-map count) to a service that processes uploads with Imager. The application reads the image and returns or renders pixel/RGB data, and the response now contains uninitialised heap bytes belonging to the process - potentially fragments of other requests, keys, or session data. No public exploit is published, but the vendor's fix commit includes a regression test that directly triggers the out-of-range-index primitive. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 22, 2026
Imager for Perl before 1.036 can leak uninitialised process heap memory when an application reads an attacker-supplied paletted image and then retrieves its pixels or converts it to RGB, because palette entries beyond the number of colours populated by the reader are read without being initialised. The TGA reader stores pixel indexes without validating them against the colour map, and the affected accessors (i_gpix_p, i_glin_p) mishandle indexes equal to or past the populated count, returning zeroed-but-uninitialised heap contents as pixel data. Exploitation is local (AV:L) and requires user or application interaction to load and then read back the crafted image (UI:R); no public exploit code has been identified at time of analysis and CISA KEV does not list this issue, while EPSS is very low (0.18%, 8th percentile). The vendor-released patch is Imager 1.036, which allocates and zero-initialises a full 256-entry palette and corrects the out-of-range checks.
RemediationAI
Vendor-released patch: upgrade Imager for Perl to version 1.036 or later (CPAN release TONYC/Imager-1.036, changes at https://metacpan.org/release/TONYC/Imager-1.036/changes), which applies commit dcf0a52e2732399d42ab44d98af6934658d068ee, always allocates a zero-initialised 256-entry palette, and corrects the i_gpix_p/i_glin_p bounds checks; also update the bundled Imager::PNG to 1.005. Where upgrading is not immediately possible, do not pass untrusted paletted images (notably TGA) to Imager->read() in workflows that then read pixel data back or convert to RGB, since the disclosure only manifests when the converted/getpixel result is returned to the attacker; alternatively pre-validate that every palette index in a decoded image is below the number of colours the reader populated before any getpixel/getcolors/RGB conversion, or reject/decode untrusted TGA files with an external, separately sandboxed tool - trade-offs being reduced image-format coverage and added parsing latency. Isolating the image-processing step in a low-privilege, short-lived, memory-scrubbed process limits how much heap data can leak but does not remove the defect. No public exploit code has been identified and the issue is not in CISA KEV, so remediation can follow normal patch cycles rather than emergency change control.
Affected ProductsAI
Imager for Perl, all versions before 1.036, distributed via CPAN as TONYC/Imager (the release notes for 1.036 document the fix). The bundled Imager::PNG module is affected at version 1.004 and is bumped to 1.005 in the same fix. Any application that uses Imager->read() on untrusted images and subsequently calls getpixel/getcolors, or converts the image to RGB, is exposed; the TGA reader is specifically identified as the path that accepts out-of-range palette indexes. Vendor advisory: https://github.com/tonycoz/imager/security/advisories/GHSA-j7v7-cm4g-vrgf; fix commit: https://github.com/tonycoz/imager/commit/dcf0a52e2732399d42ab44d98af6934658d068ee.patch; release changes: https://metacpan.org/release/TONYC/Imager-1.036/changes. No CPE strings were included in the source data.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is an off-by-one bounds error (CWE-193) in Imager's paletted-image core. Palette storage was allocated with mymalloc() for a caller-specified maxpal size but never initialised, while PALEXT(im)->count tracks only the entries a reader actually populates; anything between count and the allocated size therefore holds stale heap data. The TGA reader in particular writes pixel indexes into the image without verifying them against the colour map, so an attacker can plant an index equal to or greater than count. In i_gpix_p() the guard rejected only 'which > count' rather than 'which >= count', letting an index exactly equal to count read the first unpopulated slot, which getpixel() then returns to the caller; i_glin_p() skipped any index at or beyond count without writing that pixel into the caller's row buffer, so a subsequent palette-to-RGB conversion consumed uninitialised buffer contents and emitted prior heap memory as pixel values. The fix commit dcf0a52e2732399d42ab44d98af6934658d068ee changes the checks to '>=', ignores the maxcolors/maxpal parameters and always allocates a fixed 256-entry palette (PALETTE_COLOR_COUNT) that is fully initialised to transparent black via i_color_black0, and also makes i_gsamp_p return channel samples for all indexes; the same commit zeroes the row buffer in the bundled PNG paletted read path (Imager::PNG 1.004 to 1.005). No CPE identifiers were supplied with this CVE record.
Know when Perl gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Local file-parse (AV:L) needing the app to read the crafted image back (UI:R), no auth in the vulnerable code (PR:N); heap disclosure can expose secrets (C:H), no integrity/availability impact.
Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).
CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Lifecycle Timeline
2DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-82926
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB