Skip to main content

CVE-2026-102505: CWE-131 Incorrect Calculation of Buffer Size

0
Medium
VulnerabilityCVE-2026-102505cvecve-2026-102505cwe-131
Published: 10/01/2026 (10/01/2026, 13:11:51 UTC)
Source: CVE Database V5

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected software

GitHub Actionsmore threats →cve
Imager
pkg:github/Imager
Affected versions
>=0 <1.037

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/01/2026, 15:17:38 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses