Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-73639

CRITICAL · 9.1 CVSS Gepubliceerd: CWE-787

Beschrijving NL

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. Met een tRNS-chunk voegt read_direct8 () een alfakanaal toe aan de afbeelding die het maakt, maar nog steeds de rijbuffer van het oorspronkelijke aantal kanalen. libpng breidt de transparantie uit naar dat extra kanaal, dus png_read_row() vult één kanaal meer dan de buffer bevat, met één byte per sample, en schrijft breedte-bytes voorbij het einde van de toewijzing. Paletafbeeldingen gaan naar read_paletted() en 16-bits afbeeldingen naar read_direct16 (), die de buffer verkleint van png_get_rowbytes() en voldoende toewijst voor de uitgebreide rij. Dezelfde lezer wordt gebundeld geleverd in de Imager-distributie. Het lezen van een door een aanvaller geleverde PNG via Imager- >read() corrumpeert de heap, waardoor het proces kan crashen.

Origineel (Engels) tonen

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.

References