CVE-2025-65018 Details
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.
A heap buffer overflow vulnerability has been identified in libpng versions 1.6.0 prior to 1.6.51. The issue arises in the simplified API function 'png_image_finish_read' when handling 16-bit interlaced PNGs while the output format is set to 8 bits. This vulnerability allows for heap writes that exceed the allocated buffer limits, leading to potential memory corruption. The overflow occurs because 'png_combine_row' writes 16-bit data into a buffer sized for 8-bit output, a discrepancy that can be exploited by crafting specific PNG files.
Users are advised to upgrade to libpng version 1.6.51 or later, where this vulnerability has been patched. For those unable to upgrade immediately, a temporary workaround involves forcing 16-bit output for interlaced 16-bit PNGs, although this approach is not officially supported and may break with future libpng updates.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Nov 25, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pnggroup/libpng/issues/755 | CISA-ADP | ExploitIssue Tracking |
| https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g | CISA-ADP | ExploitVendor Advisory |
| https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d | [email protected] | Patch |
| https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea | [email protected] | Patch |
| https://github.com/pnggroup/libpng/issues/755 | [email protected] | ExploitIssue Tracking |
| https://github.com/pnggroup/libpng/pull/757 | [email protected] | Issue Tracking |
| https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| libpng libpng | >= 1.6.0, < 1.6.51 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 26, 2025 | Initial Analysis | [email protected] |
| Nov 25, 2025 | CVE Modified | CISA-ADP |
| Nov 25, 2025 | New CVE Received | [email protected] |