{"id":"CVE-2025-64505","published":"2025-11-24T23:38:40Z","modified":"2025-11-25T18:55:50Z","title":"LIBPNG is vulnerable to a heap buffer overflow in `png_do_quantize` via malformed palette index","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. Prior to version 1.6.51, a heap buffer over-read vulnerability exists in libpng's png_do_quantize function when processing PNG files with malformed palette indices. The vulnerability occurs when palette_lookup array bounds are not validated against externally-supplied image data, allowing an attacker to craft a PNG file with out-of-range palette indices that trigger out-of-bounds memory access. This issue has been patched in version 1.6.51.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0022,"percentile":0.07432,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-4952-h5wq-4m42","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnggroup/libpng/pull/748","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/commit/6a528eb5fd0dd7f6de1c39d30de0e41473431c37","tags":["x_refsource_MISC"]}],"priority":{"score":5.8,"factors":[{"name":"EPSS percentile","points":1.49},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"pnggroup","affectedVersions":[{"vendor":"pnggroup","product":"libpng","versions":["< 1.6.51"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-11-25T18:55:44.084881Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-199239","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pnggroup-libpng-cve-2025-64505","children":[{"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"}]},{"from":"CVE-2025-64505","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/6a528eb5fd0dd7f6de1c39d30de0e41473431c37","https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1","https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a"],"basis":"rarely changed file"}]}]}}