CVE-2025-64505
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-11-25

Last updated on: 2025-11-26

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-11-25
Last Modified
2025-11-26
Generated
2026-05-07
AI Q&A
2025-11-25
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
libpng libpng to 1.6.51 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a heap buffer over-read in the libpng library's png_do_quantize function. It happens when processing PNG files that have malformed palette indices. Specifically, the function does not properly check the bounds of the palette_lookup array against the image data, allowing an attacker to craft a PNG file with out-of-range palette indices that cause out-of-bounds memory access.


How can this vulnerability impact me? :

The vulnerability can lead to out-of-bounds memory access, which may cause a program using libpng to crash or behave unpredictably. This can result in denial of service or potentially allow an attacker to read sensitive memory contents, depending on the context in which libpng is used.


What immediate steps should I take to mitigate this vulnerability?

Update libpng to version 1.6.51 or later, as this version contains the patch for the heap buffer over-read vulnerability in the png_do_quantize function. Avoid processing untrusted or malformed PNG files until the update is applied.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart