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

No advisories yet.

Fixes

Solution

Upgrade to Imager 1.037 or later.


Workaround

No workaround given by the vendor.

History

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

Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-10-01T13:11:51.967Z

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

Link: CVE-2026-102505

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-102505

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses