Vulnerability · Published Oct 1, 2026 · Assigned by CPANSec
CVE-2026-102504Imager 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
High 7.5
In plain English
A high-severity integer overflow in Imager. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libimager-perl | no fix listed | DEBIAN-CVE-2026-102504 |
| Debian:13 | libimager-perl | no fix listed | DEBIAN-CVE-2026-102504 |
| Debian:14 | libimager-perl | 1.037+dfsg-2 | DEBIAN-CVE-2026-102504 |
| Ubuntu:22.04:LTS | libimager-perl | no fix listed | UBUNTU-CVE-2026-102504 |
| Ubuntu:24.04:LTS | libimager-perl | no fix listed | UBUNTU-CVE-2026-102504 |
| Ubuntu:26.04:LTS | libimager-perl | no fix listed | UBUNTU-CVE-2026-102504 |
| Ubuntu:26.10 | libimager-perl | no fix listed | UBUNTU-CVE-2026-102504 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Imager | 0 – before 1.037 |
Weakness: CWE-789, CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/tonycoz/imager/security/advisories/GHSA-g549-r73g-x7x6 vendor-advisory
- https://github.com/tonycoz/imager/commit/21b0df9eef1dffe1fdcd3706bfea9f1338031679.patch patch
- https://metacpan.org/release/TONYC/Imager-1.037/changes release-notes
- http://www.openwall.com/lists/oss-security/2026/10/01/9