CVE-2025-64506
ADVISORY - nistSummary
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.
Common Weakness Enumeration (CWE)
Out-of-bounds Read
Out-of-bounds Read
Alpine
-
| Package | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
|---|---|---|---|---|---|
| alpine/libpng | apk | alpine | 3.21 | <1.6.53-r0 | 1.6.53-r0 |
| alpine/libpng | apk | alpine | 3.20 | <1.6.53-r0 | 1.6.53-r0 |
| alpine/libpng | apk | alpine | edge | <1.6.51-r0 | 1.6.51-r0 |
| alpine/libpng | apk | alpine | 3.24 | <1.6.51-r0 | 1.6.51-r0 |
| alpine/libpng | apk | alpine | 3.23 | <1.6.51-r0 | 1.6.51-r0 |
| alpine/libpng | apk | alpine | 3.22 | <1.6.51-r0 | 1.6.51-r0 |
Severity and metrics
No CVSS data available from this advisory.
NIST
1.8
CVSS SCORE
6.1mediumDebian
-
Ubuntu
-
CVSS SCORE
N/AmediumAmazon
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighAmazon
-
CVSS SCORE
N/AhighRed Hat
1.8
CVSS SCORE
6.1mediumPhoton
CVE-2025-64506
-
CVSS SCORE
6.1mediumminimos
MINI-9h67-8994-rpw6
-