Description
Imager versions before 1.037 for Perl overflow a heap buffer fetching float samples from a paletted image in i_gsampf_fp.

For a paletted image, getsamples() with type "float" allocates a buffer of one sample per pixel and fetches every requested channel of each pixel into it. Requesting more than one channel writes past its end.

An attacker-supplied image controls the overflowing bytes through its palette.
Published: 2026-10-01
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Heap buffer overflow that can corrupt adjacent memory and potentially allow arbitrary code execution
Action: Immediate Patch
AI Analysis

Impact

Imager versions prior to 1.037 in the Perl image processing library allow a heap buffer overflow when fetching float samples from a paletted image. When a caller requests more than one channel, the code writes past the allocated buffer, allowing an attacker to overwrite memory beyond the intended sample space. This memory corruption can lead to arbitrary code execution, information disclosure, or denial of service.

Affected Systems

The vulnerability affects the Perl Imager library for any installation using a version older than 1.037. Systems that load user‑supplied images via Imager in Perl scripts—such as web applications or image‑manipulation utilities—are potentially impacted. No specific products beyond the general Imager module are listed.

Risk and Exploitability

With a CVSS score of 6.3, the overflow is classic and straightforward to exploit if an attacker can supply a crafted image. The EPSS score is not available, indicating no measurable data on exploit prevalence, and the vulnerability is not listed in the CISA KEV catalog. Attackers would need the ability to provide a malicious image to a Perl process that uses Imager; this could occur in local or remote contexts, for example, a web application rendering user‑submissions. Based on the description, the likely attack vector involves an attacker supplying a crafted image that triggers the overflow during the getsamples() call and may lead to arbitrary code execution or other severe impacts.

Generated by OpenCVE AI on October 1, 2026 at 22:06 UTC.

Remediation

Vendor Solution

Upgrade to Imager 1.037 or later.


OpenCVE Recommended Actions

  • Upgrade the Perl Imager library to version 1.037 or later.
  • If an upgrade is not immediately possible, limit image inputs to non‑paletted formats or enforce that only a single channel is requested when processing paletted images.
  • Modify application code to validate the palette size and requested channel count before calling getsamples(), ensuring the channel count does not exceed the allocated buffer size.

Generated by OpenCVE AI on October 1, 2026 at 22:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 08 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:tonycoz:imager:*:*:*:*:*:perl:*:*

Thu, 01 Oct 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 01 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
References

Thu, 01 Oct 2026 15:15:00 +0000

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

Thu, 01 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
Description Imager versions before 1.037 for Perl overflow a heap buffer fetching float samples from a paletted image in i_gsampf_fp. For a paletted image, getsamples() with type "float" allocates a buffer of one sample per pixel and fetches every requested channel of each pixel into it. Requesting more than one channel writes past its end. An attacker-supplied image controls the overflowing bytes through its palette.
Title Imager versions before 1.037 for Perl overflow a heap buffer fetching float samples from a paletted image in i_gsampf_fp
Weaknesses CWE-131
References

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-10-01T19:32:38.071Z

Reserved: 2026-09-29T11:14:01.536Z

Link: CVE-2026-102505

cve-icon Vulnrichment

Updated: 2026-10-01T15:08:21.378Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-01T14:17:20.237

Modified: 2026-10-08T13:17:32.753

Link: CVE-2026-102505

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T22:15:13Z

Weaknesses
  • CWE-131

    Incorrect Calculation of Buffer Size