CVE-2025-64505

Published Nov 25, 2025

Last updated 9 days ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-64505 is a buffer overflow vulnerability found in libpng versions 1.6.0 through 1.6.50. Specifically, it is a heap buffer over-read in `png_do_quantize` that occurs due to a malformed palette index. This vulnerability requires user interaction, as it is triggered when processing a malicious PNG file. Successful exploitation could lead to information disclosure and/or a denial of service. In certain heap configurations, it may even enable arbitrary code execution via heap corruption.

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.
Source
security-advisories@github.com
NVD status
Analyzed
Products
libpng

Risk scores

CVSS 3.1

Type
Secondary
Base score
6.1
Impact score
4.2
Exploitability score
1.8
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Severity
MEDIUM

Weaknesses

security-advisories@github.com
CWE-125

Social media

Hype score
Not currently trending

Configurations