CVE-2025-65018: LIBPNG - Buffer Overflow
- Cve: CVE-2025-65018
- Name: LIBPNG - Buffer Overflow
- 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, there is a heap buffer overflow vulnerability in the libpng simplified API function png_image_finish_read when processing 16-bit interlaced PNGs with 8-bit output format. Attacker-crafted interlaced PNG files cause heap writes beyond allocated buffer bounds. This issue has been patched in version 1.6.51.
- Impact: Attackers can cause heap buffer overflow leading to memory corruption and potential code execution.
- Remediation: Update to version 1.6.51 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.1
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
- Epss score: 0.00278
- Epss percentile: 0.20455
- Assignee: [email protected]
- Published at: 2025-11-25T00:15:47Z
- Age in days: 364
- Modified at: 2026-10-18T20:10:00Z
- Patch available: yes
- Public exploits total: 4
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-65018
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-122 | Heap-based Buffer Overflow |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/pnggroup/libpng/issues/755 | nvd | 2025-11-25 |
| https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g | nvd | 2025-11-25 |
| https://github.com/bohemian-miser/CVE-2025-65018_Exploit_Challenge | poc-in-github | 2025-12-09 |
| https://github.com/Neo-Neo6/CVE-2025-65018-Heap-buffer-overflow-in-libpng-ps4-ps5- | poc-in-github | 2025-11-23 |
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, issues, pull, security_advisory | yes | /v1/repositories/pnggroup/libpng |
Index
- Repositories: 2888
- Repositories high signal: 1766
- Checked, none or zero: packages
Exploitation
- Public exploit: yes
- Public exploit count: 4
- Public exploit first date: 2025-11-23
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts