CVE-2026-102504: CWE-789 Memory Allocation with Excessive Size Value
Imager versions before 1.037 for Perl exit the process reading a raw image with an out-of-range raw_datachannels value in i_readraw_wiol. Nothing range-checks raw_datachannels. The line buffer is sized as the image width times the channel count with no overflow check, so a negative or very large count requests an excessive allocation. When it fails, Imager's allocator calls exit(3). Passing an untrusted raw_datachannels value to Imager->read() triggers an uncatchable exit.
AI Analysis
Technical Summary
The vulnerability in Imager versions prior to 1.037 arises from the lack of validation on the raw_datachannels parameter in the i_readraw_wiol function. This parameter controls the channel count used to size a line buffer as image width multiplied by channel count without overflow checks. An excessively large or negative raw_datachannels value causes a request for excessive memory allocation. Upon allocation failure, Imager's allocator calls exit(3), causing an immediate and uncatchable process termination when the raw_datachannels value is passed to Imager->read().
Potential Impact
An attacker supplying a crafted raw_datachannels value can cause the Perl process using Imager to exit abruptly. This results in a denial of service (DoS) condition due to uncatchable process termination. There is no indication of code execution or data corruption beyond process exit.
Mitigation Recommendations
No official patch or fix is currently documented. Users should avoid processing untrusted raw images with Imager versions before 1.037. Monitor vendor advisories for updates or patches addressing this issue. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-102504: CWE-789 Memory Allocation with Excessive Size Value
Description
Imager versions before 1.037 for Perl exit the process reading a raw image with an out-of-range raw_datachannels value in i_readraw_wiol. Nothing range-checks raw_datachannels. The line buffer is sized as the image width times the channel count with no overflow check, so a negative or very large count requests an excessive allocation. When it fails, Imager's allocator calls exit(3). Passing an untrusted raw_datachannels value to Imager->read() triggers an uncatchable exit.
CVSS v3.1
Score 7.5high
Affected software
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
Technical Analysis
The vulnerability in Imager versions prior to 1.037 arises from the lack of validation on the raw_datachannels parameter in the i_readraw_wiol function. This parameter controls the channel count used to size a line buffer as image width multiplied by channel count without overflow checks. An excessively large or negative raw_datachannels value causes a request for excessive memory allocation. Upon allocation failure, Imager's allocator calls exit(3), causing an immediate and uncatchable process termination when the raw_datachannels value is passed to Imager->read().
Potential Impact
An attacker supplying a crafted raw_datachannels value can cause the Perl process using Imager to exit abruptly. This results in a denial of service (DoS) condition due to uncatchable process termination. There is no indication of code execution or data corruption beyond process exit.
Mitigation Recommendations
No official patch or fix is currently documented. Users should avoid processing untrusted raw images with Imager versions before 1.037. Monitor vendor advisories for updates or patches addressing this issue. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-09-29T11:12:58.569Z
- State
- PUBLISHED
Threat ID: 6abe748aa43b0b3b89bd1c71
Added to database: 10/01/2026, 14:56:10 UTC
Last enriched: 10/01/2026, 15:17:27 UTC
Last updated: 10/01/2026, 23:12:16 UTC
Views: 6
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.