# CVE-2026-102505: Imager versions before 1.037 for Perl overflow a heap buffer fetching float samples from a paletted image in i_gsampf_fp

- Severity: Medium 6.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-10-01T13:11:51.967Z
- Modified: 2026-10-08T13:17:32.753Z
- Weaknesses: CWE-131
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

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

(As written by CVE List.)

## Affected

- Imager: before 1.037
- tonycoz imager: before 1.037

## References

- <https://github.com/tonycoz/imager/security/advisories/GHSA-4rx6-cgv3-fmxp> (mitigation, vendor-advisory)
- <https://github.com/tonycoz/imager/commit/aae49c6be065aa467e834105c816359394a634db.patch> (patch)
- <https://metacpan.org/release/TONYC/Imager-1.037/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/10/01/10> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2026-102505](https://www.cve.org/CVERecord?id=CVE-2026-102505), CVE Terms of Use, modified 2026-10-01
- NVD: [CVE-2026-102505](https://nvd.nist.gov/vuln/detail/CVE-2026-102505), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2026-102505 · Whole record: https://cve.day/CVE-2026-102505.json · Rebuilt by cve.day 2026-11-25T22:59:41.838Z
