{"id":"CVE-2025-64505","state":"PUBLISHED","title":"LIBPNG is vulnerable to a heap buffer overflow in `png_do_quantize` via malformed palette index","description":"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.","publishedAt":"2025-11-24T23:38:40.405Z","updatedAt":"2025-11-25T18:55:50.619Z","severity":{"score":6.1,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/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.51","status":"affected"}]}],"references":["https://github.com/pnggroup/libpng/security/advisories/GHSA-4952-h5wq-4m42","https://github.com/pnggroup/libpng/pull/748","https://github.com/pnggroup/libpng/commit/6a528eb5fd0dd7f6de1c39d30de0e41473431c37"],"weaknesses":["CWE-125"],"ingestedAt":"2026-10-29T20:09:48.677Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/64xxx/CVE-2025-64505.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-64505","state":"PUBLISHED","datePublished":"2025-11-24T23:38:40.405Z","dateUpdated":"2025-11-25T18:55:50.619Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-11-05T19:12:25.104Z"},"containers":{"cna":{"title":"LIBPNG is vulnerable to a heap buffer overflow in `png_do_quantize` via malformed palette index","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. 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."}],"affected":[{"vendor":"pnggroup","product":"libpng","versions":[{"version":"< 1.6.51","status":"affected"}]}],"references":[{"url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-4952-h5wq-4m42","name":"https://github.com/pnggroup/libpng/security/advisories/GHSA-4952-h5wq-4m42","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnggroup/libpng/pull/748","name":"https://github.com/pnggroup/libpng/pull/748","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/commit/6a528eb5fd0dd7f6de1c39d30de0e41473431c37","name":"https://github.com/pnggroup/libpng/commit/6a528eb5fd0dd7f6de1c39d30de0e41473431c37","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/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:38:40.405Z"},"source":{"advisory":"GHSA-4952-h5wq-4m42","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-11-25T18:55:44.084881Z","id":"CVE-2025-64505","options":[{"Exploitation":"none"},{"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-25T18:55:50.619Z"}}]}}}