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 pngimagefinish_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.
{
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "1.6.0"
},
{
"fixed": "1.6.51"
}
],
"source": "AFFECTED_FIELD"
},
{
"extracted_events": [
{
"fixed": "1.6.51"
}
],
"source": "DESCRIPTION"
}
],
"cwe_ids": [
"CWE-122",
"CWE-787"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65018.json"
}"2026-08-06T14:21:04Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-65018.json"
[
{
"digest": {
"line_hashes": [
"301538088964340392606706499638159721560",
"219698033185987930519472075599950372348",
"118861229656205118168890257752076913306"
],
"threshold": 0.9
},
"signature_version": "v1",
"id": "CVE-2025-65018-c57bf1c7",
"target": {
"file": "pngread.c"
},
"signature_type": "Line",
"source": "https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d",
"deprecated": false
},
{
"digest": {
"length": 1600.0,
"function_hash": "20229053456542728879289813519749771341"
},
"signature_version": "v1",
"id": "CVE-2025-65018-e67b5639",
"target": {
"file": "pngread.c",
"function": "png_image_finish_read"
},
"signature_type": "Function",
"source": "https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d",
"deprecated": false
}
]