Skip to main content

Perl Imager EUVDEUVD-2026-82926

| CVE-2026-93018 MEDIUM
Off-by-one Error (CWE-193)
2026-09-18 9b29abf9-4ab0-4765-b253-1875cd9b441e
5.5
CVSS 3.1 · Vendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft paletted image with index at/beyond palette count
  2. Delivery
    Submit to app that calls Imager->read()
  3. Exploit
    i_gpix_p/i_glin_p reads unpopulated/uninitialised palette entry
  4. Execution
    getpixel or RGB conversion returns heap bytes
  5. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
vuln.today AI 5.5 MEDIUM

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 5.5 MEDIUM

Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).

CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
CVSS changed
Sep 22, 2026 - 19:22 NVD
5.5 (None) 5.5 (MEDIUM)
CVE Published
Sep 18, 2026 - 14:19 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.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

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
Popular Perl/CPAN image module but Perl ecosystem is niche today
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

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

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

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

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy