{"id":"CVE-2025-64720","state":"PUBLISHED","title":"LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication","description":"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 png_image_read_composite when processing palette images with PNG_FLAG_OPTIMIZE_ALPHA enabled. The palette compositing code in png_init_read_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.","publishedAt":"2025-11-24T23:45:38.315Z","updatedAt":"2025-11-25T19:28:20.336Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["pnggroup libpng"],"affected":[{"vendor":"pnggroup","product":"libpng","versions":[{"version":">= 1.6.0, < 1.6.51","status":"affected"}]}],"references":["https://github.com/pnggroup/libpng/security/advisories/GHSA-hfc7-ph9c-wcww","https://github.com/pnggroup/libpng/issues/686","https://github.com/pnggroup/libpng/pull/751","https://github.com/pnggroup/libpng/commit/08da33b4c88cfcd36e5a706558a8d7e0e4773643"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:09:48.677Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/64xxx/CVE-2025-64720.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-64720","state":"PUBLISHED","datePublished":"2025-11-24T23:45:38.315Z","dateUpdated":"2025-11-25T19:28:20.336Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-11-10T14:07:42.922Z"},"containers":{"cna":{"title":"LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication","descriptions":[{"lang":"en","value":"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 png_image_read_composite when processing palette images with PNG_FLAG_OPTIMIZE_ALPHA enabled. The palette compositing code in png_init_read_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."}],"affected":[{"vendor":"pnggroup","product":"libpng","versions":[{"version":">= 1.6.0, < 1.6.51","status":"affected"}]}],"references":[{"url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-hfc7-ph9c-wcww","name":"https://github.com/pnggroup/libpng/security/advisories/GHSA-hfc7-ph9c-wcww","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnggroup/libpng/issues/686","name":"https://github.com/pnggroup/libpng/issues/686","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/pull/751","name":"https://github.com/pnggroup/libpng/pull/751","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/commit/08da33b4c88cfcd36e5a706558a8d7e0e4773643","name":"https://github.com/pnggroup/libpng/commit/08da33b4c88cfcd36e5a706558a8d7e0e4773643","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-125","lang":"en","description":"CWE-125: Out-of-bounds Read","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-11-24T23:45:38.315Z"},"source":{"advisory":"GHSA-hfc7-ph9c-wcww","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-hfc7-ph9c-wcww","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-11-25T19:28:16.806638Z","id":"CVE-2025-64720","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-11-25T19:28:20.336Z"}}]}}}