LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From version 1.6.0 to before 1.6.51, an out-of-bounds read vulnerability exists in pngimagereadcomposite when processing palette images with PNGFLAGOPTIMIZEALPHA enabled. The palette compositing code in pnginitread_transformations incorrectly applies background compositing during premultiplication, violating the invariant component ≤ alpha × 257 required by the simplified PNG API. This issue has been patched in version 1.6.51.
{
"license": "CC-BY-4.0",
"sources": [
{
"id": "CVE-2025-64720",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2025-64720",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2025-64720",
"published": "2025-11-25T00:15:47.460Z",
"imported": "2025-11-27T03:28:04.931Z",
"modified": "2025-11-26T18:35:18.253Z"
}
]
}