CVE-2025-64506: LIBPNG - Out of Bounds Read
- Cve: CVE-2025-64506
- Name: LIBPNG - Out of Bounds Read
- 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.
- Impact: Attackers can read memory beyond buffer boundaries, potentially leaking sensitive information or causing application crashes.
- Remediation: Update to version 1.6.51 or later.
- Vulnerability type: out_of_bounds_rw
- Vulnerability impact: information_disclosure, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
- Epss score: 0.0015
- Epss percentile: 0.04097
- Assignee: [email protected]
- Published at: 2025-11-25T00:15:47Z
- Age in days: 364
- Modified at: 2026-10-18T20:10:00Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-64506
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| libpng:libpng | >= 1.6.0, < 1.6.51 | no | nvd | /v1/products/libpng/libpng |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| pnggroup/libpng | commit, fix, pull, security_advisory | yes | /v1/repositories/pnggroup/libpng |
Index
- Repositories: 2888
- Repositories high signal: 1766
- Checked, none or zero: packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts