{"id":"CVE-2026-73639","summary":"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","details":"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.\n\nWith 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.\n\nThe same reader ships bundled in the Imager distribution.\n\nReading an attacker-supplied PNG through Imager-\u003eread() corrupts the heap, which can crash the process.","aliases":["GHSA-jhx5-34j8-9g88"],"modified":"2026-09-20T11:31:00.998157893Z","published":"2026-09-17T21:18:59.207Z","database_specific":{"cna_assigner":"CPANSec","cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73639.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/09/17/6"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73639.json"},{"type":"ADVISORY","url":"https://github.com/tonycoz/imager/security/advisories/GHSA-jhx5-34j8-9g88"},{"type":"ADVISORY","url":"https://metacpan.org/release/TONYC/Imager-1.035/changes"},{"type":"ADVISORY","url":"https://metacpan.org/release/TONYC/Imager-File-PNG-1.004/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73639"},{"type":"REPORT","url":"https://github.com/tonycoz/imager/pull/567"},{"type":"FIX","url":"https://github.com/tonycoz/imager/commit/d973bd7e8843f084e8071caa24b89545c88b1e4b.patch"},{"type":"PACKAGE","url":"https://github.com/tonycoz/imager"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/tonycoz/imager","events":[{"introduced":"0d1baac8f8b1d3f15a77cc907f7cebccf74b9176"},{"fixed":"396eb238f041bfe959fe5bbe86e97af107d2276e"},{"introduced":"289518caad4149b3019e6fc865d669239b96ccbf"},{"fixed":"f6a3d06f24ac8ec0693721decbc1cddcd0d35a41"}],"database_specific":{"extracted_events":[{"introduced":"1.003"},{"fixed":"1.004"},{"introduced":"1.034"},{"fixed":"1.035"}],"source":"AFFECTED_FIELD"}}],"versions":["v1.034","v1.003"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-73639.json"}}],"schema_version":"1.9.0"}