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
- State
- Published
- Severity
- 6.3 Medium
- Published
- Oct 1, 2026
- Updated
- Oct 1, 2026
- Reserved
- Sep 29, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.3 Medium | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L | CISA-ADP |
Weaknesses
- CWE-131 Incorrect Calculation of Buffer Size
Affected Products
| Product | Versions |
|---|---|
Imager |
|
References
- https://github.com/tonycoz/imager/security/advisories/GHSA-4rx6-cgv3-fmxpvendor-advisory
- https://github.com/tonycoz/imager/commit/aae49c6be065aa467e834105c816359394a634db.patchpatch
- https://metacpan.org/release/TONYC/Imager-1.037/changesrelease-notes
- http://www.openwall.com/lists/oss-security/2026/10/01/10
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.