CVE-2026-73639 Details
Description
Imager::File::PNG versions from 1.003 before 1.004 for Perl write past the end of the row buffer reading a PNG with a tRNS transparency chunk in read_direct8. With a tRNS chunk, read_direct8() adds an alpha channel to the image it creates but still sizes the row buffer from the original channel count. libpng expands the transparency into that extra channel, so png_read_row() fills one channel more than the buffer holds, at one byte per sample, and writes width bytes past the end of the allocation. Palette images go to read_paletted() and 16-bit images to read_direct16(), which sizes its buffer from png_get_rowbytes() and allocates enough for the expanded row. The same reader ships bundled in the Imager distribution. Reading an attacker-supplied PNG through Imager->read() corrupts the heap, which can crash the process.
A buffer overflow vulnerability has been identified in the Imager::File::PNG module for Perl, specifically in versions 1.003 prior to 1.004. The issue arises when the PNG reader processes images with a tRNS transparency chunk using the read_direct8() function. The vulnerability occurs because the row buffer is not properly sized to accommodate the additional alpha channel introduced by the tRNS chunk. As a result, the png_read_row() function writes data beyond the allocated buffer, leading to heap corruption and potential process crashes.
Users can upgrade to Imager::File::PNG version 1.004 or later to address this vulnerability. If using the Imager distribution, upgrade to version 1.035 or later.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 17, 2026CISA-ADP
Assessed Sep 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tonycoz/imager/commit/d973bd7e8843f084e8071caa24b89545c88b1e4b.patch | CPANSec | Source CodeVendor |
| https://github.com/tonycoz/imager/pull/567 | CPANSec | Issue TrackingVendor |
| https://github.com/tonycoz/imager/security/advisories/GHSA-jhx5-34j8-9g88 | CPANSec | AdvisoryRemedyVendor |
| https://metacpan.org/release/TONYC/Imager-1.035/changes | CPANSec | Release NotesVendor |
| https://metacpan.org/release/TONYC/Imager-File-PNG-1.004/changes | CPANSec | Release NotesVendor |
| http://www.openwall.com/lists/oss-security/2026/09/17/6 | CVE | Mailing List |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| Imager::File::PNG | >= 1.003, < 1.004 |
CPE
Remediation
| |
| Imager | >= 1.034, < 1.035 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 22, 2026 | CVE Modified | CISA-ADP |
| Sep 18, 2026 | CVE Modified | CVE |
| Sep 17, 2026 | New CVE Received | CPANSec |
Volerion