CVE-2025-64505
libpng: LIBPNG heap buffer overflow via malformed palette index
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · November 25, 2025
Updated · September 1, 2026
Description
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.
Statement
This vulnerability is rated Moderate for Red Hat products. It affects applications that process specially crafted PNG files using the vulnerable libpng library. Exploitation requires user interaction, where a victim must open or process a malicious PNG image, leading to a heap buffer over-read. This could result in information disclosure or application crash.
java-*-openjdk-headless packages do not contain libsplashscreen.so, hence are not affected.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 4.4CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:L
CWE-125 · Out-of-bounds Read