{"id":"CVE-2025-65018","published":"2025-11-24T23:50:18Z","modified":"2025-11-25T19:29:33Z","title":"LIBPNG is vulnerable to a heap buffer overflow in `png_combine_row` triggered via `png_image_finish_read`","vendor":"pnggroup","product":"libpng","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00278,"percentile":0.20477,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/pnggroup/libpng/security/advisories/GHSA-7wv6-48j4-hj3g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pnggroup/libpng/issues/755","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/pull/757","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d","tags":["x_refsource_MISC"]},{"url":"https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea","tags":["x_refsource_MISC"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":4.1},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.97}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2025-11-23","earliestUrl":"https://github.com/Neo-Neo6/CVE-2025-65018-Heap-buffer-overflow-in-libpng-ps4-ps5-","repos":[{"name":"Neo-Neo6/CVE-2025-65018-Heap-buffer-overflow-in-libpng-ps4-ps5-","url":"https://github.com/Neo-Neo6/CVE-2025-65018-Heap-buffer-overflow-in-libpng-ps4-ps5-","stars":10,"created":"2025-11-23"},{"name":"bohemian-miser/CVE-2025-65018_Exploit_Challenge","url":"https://github.com/bohemian-miser/CVE-2025-65018_Exploit_Challenge","stars":1,"created":"2025-12-09"}]},"first":{"date":"2025-11-23","source":"PoC-in-GitHub","url":"https://github.com/Neo-Neo6/CVE-2025-65018-Heap-buffer-overflow-in-libpng-ps4-ps5-"},"provenance":"source"},"vendorSlug":"pnggroup","affectedVersions":[{"vendor":"pnggroup","product":"libpng","versions":[">= 1.6.0, < 1.6.51"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-11-25T19:29:28.950712Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-199236","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pnggroup-libpng-cve-2025-64505","children":[{"from":"CVE-2025-65018","to":"CVE-2026-22695","relation":"regression","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"regression","quote":"This is a regression introduced by the fix for CVE-2025-65018.","from":"CVE.org","in":"CVE-2026-22695"}]},{"from":"CVE-2025-65018","to":"CVE-2025-66293","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pngread.c"],"commits":["https://github.com/pnggroup/libpng/commit/16b5e3823918840aae65c0a6da57c78a5a496a4d","https://github.com/pnggroup/libpng/commit/218612ddd6b17944e21eda56caf8b4bf7779d1ea","https://github.com/pnggroup/libpng/commit/788a624d7387a758ffd5c7ab010f1870dea753a1","https://github.com/pnggroup/libpng/commit/a05a48b756de63e3234ea6b3b938b8f5f862484a"],"basis":"rarely changed file"}]}]}}