Description
Imager versions before 1.036 for Perl exit the process reading a TGA with a colour map length of 32768 or more in tga_palette_read.

The reader unpacks the two-byte colour map length into a signed short, so a length of 32768 or more becomes negative. tga_palette_read() casts that value to size_t and asks mymalloc() for a size near SIZE_MAX. The allocation fails and Imager's allocator calls exit(3).

Reading an attacker-supplied file through Imager->read() triggers an uncatchable exit.
Published: 2026-09-18
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

Imager versions earlier than 1.036 interpret the two‑byte colour map length as a signed short; a value of 32768 or higher becomes negative. The value is then cast to size_t and passed to mymalloc(), requesting a size close to SIZE_MAX. The allocation fails, causing Imager to call exit(3). As a result, any application that reads such a TGA image via Imager->read() will terminate abruptly, leading to a denial of service. The vulnerability is exploitable by supplying a crafted TGA file to the application.

Affected Systems

The flaw affects the Perl Imager module released by TONYC, specifically all editions before version 1.036. Any system that installs and uses these earlier versions and processes TGA images is vulnerable.

Risk and Exploitability

The CVSS score is 9.1 and the EPSS score is < 1%, and the vulnerability is not listed in CISA’s KEV catalog. Nonetheless, any application that reads such a TGA image via Imager->read() triggers an uncatchable exit. An attacker who can supply an image (e.g., via file upload, local file manipulation, or phishing) can crash an application deterministically. Because the exit is uncatchable, the impact is a complete loss of service for the affected process. The risk is effectively high for availability, though there is no direct code‑execution or data‑exposure risk.

Generated by OpenCVE AI on September 19, 2026 at 16:25 UTC.

Remediation

Vendor Solution

Upgrade to Imager 1.036 or later.


OpenCVE Recommended Actions

  • Upgrade to Imager 1.036 or later.
  • Validate the colour map length in a TGA file header before calling Imager->read() and reject values greater than 32767.
  • Run image‑processing applications as a non‑privileged user or in a sandboxed environment to contain a crash.

Generated by OpenCVE AI on September 19, 2026 at 16:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 19 Sep 2026 01:15:00 +0000

Type Values Removed Values Added
First Time appeared Tonycoz
Tonycoz imager
Vendors & Products Tonycoz
Tonycoz imager

Fri, 18 Sep 2026 21:30:00 +0000

Type Values Removed Values Added
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 18 Sep 2026 14:15:00 +0000

Type Values Removed Values Added
Description Imager versions before 1.036 for Perl exit the process reading a TGA with a colour map length of 32768 or more in tga_palette_read. The reader unpacks the two-byte colour map length into a signed short, so a length of 32768 or more becomes negative. tga_palette_read() casts that value to size_t and asks mymalloc() for a size near SIZE_MAX. The allocation fails and Imager's allocator calls exit(3). Reading an attacker-supplied file through Imager->read() triggers an uncatchable exit.
Title Imager versions before 1.036 for Perl exit the process reading a TGA with a colour map length of 32768 or more in tga_palette_read
Weaknesses CWE-196
CWE-789
References

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-09-18T17:28:49.711Z

Reserved: 2026-09-17T14:56:50.796Z

Link: CVE-2026-93019

cve-icon Vulnrichment

Updated: 2026-09-18T17:06:59.404Z

cve-icon NVD

Status : Deferred

Published: 2026-09-18T14:19:04.480

Modified: 2026-09-18T18:18:17.967

Link: CVE-2026-93019

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-19T16:30:17Z

Weaknesses
  • CWE-196

    Unsigned to Signed Conversion Error

  • CWE-789

    Memory Allocation with Excessive Size Value