{"id":"CVE-2025-64720","published":"2025-11-24T23:45:38Z","modified":"2025-11-25T19:28:20Z","title":"LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication","vendor":"pnggroup","product":"libpng","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00447,"percentile":0.39633,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-hfc7-ph9c-wcww","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnggroup/libpng/issues/686","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/pull/751","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/commit/08da33b4c88cfcd36e5a706558a8d7e0e4773643","tags":["x_refsource_MISC"]}],"priority":{"score":12.9,"factors":[{"name":"EPSS percentile","points":7.93},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"pnggroup","affectedVersions":[{"vendor":"pnggroup","product":"libpng","versions":[">= 1.6.0, < 1.6.51"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-11-25T19:28:16.806638Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-199237","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pnggroup-libpng-cve-2025-64505","parents":[{"from":"CVE-2025-64505","to":"CVE-2025-64720","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pngrtran.c"],"commits":["https://github.com/pnggroup/libpng/commit/6a528eb5fd0dd7f6de1c39d30de0e41473431c37","https://github.com/pnggroup/libpng/commit/08da33b4c88cfcd36e5a706558a8d7e0e4773643"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2025-64720","to":"CVE-2025-66293","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pngrtran.c"],"commits":["https://github.com/pnggroup/libpng/commit/08da33b4c88cfcd36e5a706558a8d7e0e4773643","https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1","https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a"],"basis":"shared function","functions":["png_init_read_transformations"]}]}]}}