{"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-10-28T11:12:17.154323015Z","published":"2026-09-17T21:18:59.207Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73639.json","cna_assigner":"CPANSec","cwe_ids":["CWE-787"]},"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"},{"fixed":"d973bd7e8843f084e8071caa24b89545c88b1e4b"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"1.003"},{"fixed":"1.004"}],"source":"AFFECTED_FIELD"},{"strategy":"StandardRange","range":[{"introduced":"1.034"},{"fixed":"1.035"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"d973bd7e8843f084e8071caa24b89545c88b1e4b"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v1.034","v1.003"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-73639.json","vanir_signatures":[{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["92098837625173272701439476932164955284","155340930284150661853425534505066329769","192794196166304695670941862924225553416","146360290625059573188759078255192700503","320736754482995428408547705843734363023","246749982309930058317187062964132689541","98940639484387815586771609080005004308","856089465327438696957969940359122098","82858985714269442465771776294181700350","289527810321199991122061545466701483034","47269755249263090222074133853278984512","273777330842901804129775445510801218033","122173872448962528612661172528318283975","4584476542731253505781892826988072548","53225253891853093309707276630894415368","3463768907728628300399426892945388421","114966046107779748112601707120725552159","277267051960966063933550505529698102031","334283569745588111814526367047396671807","856089465327438696957969940359122098","55517380823379775703908319681633018557","308574903331823911640437522235250814110","227372771051189932267802667537412212506","127589918621923408035112829837766750719","212344682971151708006066237547809583393","79232249039140798215599681111812026115","97714927508681689507799463317553556286","283819929985981115585337573826559204165","4174482202474164063493613712773962299","245765197108375903031130880343874720609","71164297836442741058032412348903031777","856089465327438696957969940359122098"]},"id":"CVE-2026-73639-13f30347","signature_type":"Line","signature_version":"v1","source":"https://github.com/tonycoz/imager/commit/d973bd7e8843f084e8071caa24b89545c88b1e4b","target":{"file":"PNG/impng.c"}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/tonycoz/imager/commit/d973bd7e8843f084e8071caa24b89545c88b1e4b","target":{"function":"read_direct8","file":"PNG/impng.c"},"deprecated":false,"digest":{"length":1348,"function_hash":"260934713903637319983164023601036569336"},"id":"CVE-2026-73639-1fcd2214"},{"deprecated":false,"digest":{"function_hash":"270705117611937489761237429365226659381","length":1709},"id":"CVE-2026-73639-395624fa","signature_type":"Function","signature_version":"v1","source":"https://github.com/tonycoz/imager/commit/d973bd7e8843f084e8071caa24b89545c88b1e4b","target":{"file":"PNG/impng.c","function":"read_direct16"}}],"vanir_signatures_modified":"2026-10-28T11:12:17Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"}]}