CVE-2025-64506
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. From version 1.6.0 to before 1.6.51, a heap buffer over-read vulnerability exists in libpng's png_write_image_8bit function when processing 8-bit images through the simplified write API with convert_to_8bit enabled. The vulnerability affects 8-bit grayscale+alpha, RGB/RGBA, and images with incomplete row data. A conditional guard incorrectly allows 8-bit input to enter code expecting 16-bit input, causing reads up to 2 bytes beyond allocated buffer boundaries. 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 From 1.6.0 (inc) 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_write_image_8bit function when processing certain 8-bit images. Specifically, due to an incorrect conditional guard, 8-bit input data is mistakenly processed as if it were 16-bit input, causing the function to read up to 2 bytes beyond the allocated buffer boundaries. This affects 8-bit grayscale+alpha, RGB/RGBA, and images with incomplete row data. The issue exists in libpng versions from 1.6.0 up to but not including 1.6.51 and has been fixed in version 1.6.51.


How can this vulnerability impact me? :

The vulnerability can lead to a heap buffer over-read, which may cause application crashes or potentially allow an attacker to read sensitive memory contents beyond the intended buffer. This can result in denial of service or information disclosure when processing specially crafted PNG images using vulnerable versions of libpng.


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 that fixes the heap buffer over-read vulnerability in the png_write_image_8bit function.


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