CVE-2026-102505: CWE-131 Incorrect Calculation of Buffer Size
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.
AI Analysis
Technical Summary
Imager versions prior to 1.037 for Perl contain a heap buffer overflow in the i_gsampf_fp function when processing paletted images. Specifically, getsamples() with type "float" allocates insufficient buffer space for multiple channels per pixel, leading to out-of-bounds writes. This vulnerability is tracked as CWE-131 (Incorrect Calculation of Buffer Size). The overflow is controllable by an attacker through the image palette data.
Potential Impact
The vulnerability allows an attacker to cause a heap buffer overflow by supplying a malicious paletted image. This could lead to memory corruption, potentially enabling arbitrary code execution or denial of service depending on how the application uses the Imager library. However, no known exploits are reported in the wild.
Mitigation Recommendations
A fix is available in Imager version 1.037 and later. Users should upgrade to version 1.037 or newer to remediate this vulnerability. No other mitigation guidance is provided.
CVE-2026-102505: CWE-131 Incorrect Calculation of Buffer Size
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.
CVSS v3.1
Score 6.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Imager versions prior to 1.037 for Perl contain a heap buffer overflow in the i_gsampf_fp function when processing paletted images. Specifically, getsamples() with type "float" allocates insufficient buffer space for multiple channels per pixel, leading to out-of-bounds writes. This vulnerability is tracked as CWE-131 (Incorrect Calculation of Buffer Size). The overflow is controllable by an attacker through the image palette data.
Potential Impact
The vulnerability allows an attacker to cause a heap buffer overflow by supplying a malicious paletted image. This could lead to memory corruption, potentially enabling arbitrary code execution or denial of service depending on how the application uses the Imager library. However, no known exploits are reported in the wild.
Mitigation Recommendations
A fix is available in Imager version 1.037 and later. Users should upgrade to version 1.037 or newer to remediate this vulnerability. No other mitigation guidance is provided.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-09-29T11:14:01.536Z
- State
- PUBLISHED
Threat ID: 6abe748aa43b0b3b89bd1c72
Added to database: 10/01/2026, 14:56:10 UTC
Last enriched: 10/01/2026, 15:17:38 UTC
Last updated: 10/01/2026, 23:12:16 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.