LIBPNG
LIBPNG is vulnerable to a heap buffer overflow in `png_combine_row` triggered via `png_image_finish_read`
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.6.0, < 1.6.51
Fixed in 1.6.51
Mitigation
Upgrade libpng to 1.6.51 or later.
References
- Vendor advisory github.com/pnggroup/libpng/security/advisories…
- Patch github.com/pnggroup/libpng/pull/757
- Patch github.com/pnggroup/libpng/commit/16b5e3823918…
1 more
Timeline
Days relative to CVE publicationFirst public PoC 1.2 days before publication; not in CISA KEV. First PoC: Neo-Neo6/CVE-2025-65018-Heap-buffer-overflow-in-libpng-ps4-ps5- (created 23 Nov 2025, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Neo-Neo6/CVE-2025-65018-Heap-buffer-overflow-in-libpng-ps4-ps5- | 23 Nov 2025 −1.2 d | 10 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| bohemian-miser/CVE-2025-65018_Exploit_Challenge | 9 Dec 2025 +14 d | 1 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.