{"id":"CVE-2025-65018","state":"PUBLISHED","title":"LIBPNG is vulnerable to a heap buffer overflow in `png_combine_row` triggered via `png_image_finish_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, 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.","publishedAt":"2025-11-24T23:50:18.294Z","updatedAt":"2025-11-25T19:29:33.633Z","severity":{"score":7.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["pnggroup libpng"],"affected":[{"vendor":"pnggroup","product":"libpng","versions":[{"version":">= 1.6.0, < 1.6.51","status":"affected"}]}],"references":["https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g","https://github.com/pnggroup/libpng/issues/755","https://github.com/pnggroup/libpng/pull/757","https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d","https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea"],"weaknesses":["CWE-787","CWE-122"],"ingestedAt":"2026-10-29T20:09:56.034Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/65xxx/CVE-2025-65018.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-65018","state":"PUBLISHED","datePublished":"2025-11-24T23:50:18.294Z","dateUpdated":"2025-11-25T19:29:33.633Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-11-13T15:36:51.680Z"},"containers":{"cna":{"title":"LIBPNG is vulnerable to a heap buffer overflow in `png_combine_row` triggered via `png_image_finish_read`","descriptions":[{"lang":"en","value":"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":[{"vendor":"pnggroup","product":"libpng","versions":[{"version":">= 1.6.0, < 1.6.51","status":"affected"}]}],"references":[{"url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g","name":"https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnggroup/libpng/issues/755","name":"https://github.com/pnggroup/libpng/issues/755","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/pull/757","name":"https://github.com/pnggroup/libpng/pull/757","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d","name":"https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea","name":"https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.1,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787: Out-of-bounds Write","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-122","lang":"en","description":"CWE-122: Heap-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-11-24T23:50:18.294Z"},"source":{"advisory":"GHSA-7wv6-48j4-hj3g","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g","tags":["exploit"]},{"url":"https://github.com/pnggroup/libpng/issues/755","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-11-25T19:29:28.950712Z","id":"CVE-2025-65018","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-11-25T19:29:33.633Z"}}]}}}