LIBPNG: Chunk smuggling in push-mode APNG parser via unconsumed chunk body
pnggroup libpng · pnggroup libpng-apng
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| pnggroup libpng |
| No fix yet |
| pnggroup libpng-apng |
| No fix yet |
Original description
LIBPNG is a reference library for use in applications that process PNG (Portable Network Graphics) raster image files. In version 1.8.0, three inter-frame chunk discard paths in the push-mode APNG parser clear the chunk-header flag without consuming the chunk body and CRC, allowing attacker-controlled bytes inside an ignored ancillary chunk to be reinterpreted as a fresh chunk header on the next call to `png_process_data`. Commit faf06924688b62d7c1654b5ceddedbde66ffadb4 fixes the issue.
From the CVE record · GitHub_M