{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-65018 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-65018 is a high-severity memory corruption vulnerability in Libpng Libpng, published on 24 Nov 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-65018 and fix it if it is affected.\n\nWhat it is: CVE-2025-65018 is a high-severity memory corruption vulnerability in Libpng Libpng, published on 24 Nov 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-65018 exists.\n\nAffected product: Libpng Libpng. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-65018/ (Markdown: https://insights.sbomify.com/CVE-2025-65018/index.md)","id":"CVE-2025-65018","markdown":"https://insights.sbomify.com/CVE-2025-65018/index.md","name":"CVE-2025-65018","record":{"aliases":["A-463998243","ALPINE-CVE-2025-65018","ASB-A-463998243","AZL-70850","AZL-70853","AZL-70874","AZL-70877","AZL-70891","AZL-70900","AZL-70912","AZL-70925","AZL-70978","BELL-CVE-2025-65018","CLSA-2026-1768394334","CLSA-2026-1768395101","DEBIAN-CVE-2025-65018","ECHO-4a92-1299-0ec1","GHSA-7wv6-48j4-hj3g","JLSEC-2025-331","MINI-52f5-r5pj-382r","ROOT-OS-ALPINE-315-CVE-2025-65018","UBUNTU-CVE-2025-65018","USN-7924-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"PNG image library","requires_auth":"none","summary":"A heap buffer overflow in libpng allows attackers to execute arbitrary code or cause denial of service via crafted interlaced PNG files.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"libpng","vendor":"libpng"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-11-23","github_poc":2,"max_poc_stars":10,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-11-23T18:34:22Z","kind":"github_poc","ref":"https://github.com/Neo-Neo6/CVE-2025-65018-Heap-buffer-overflow-in-libpng-ps4-ps5-","stars":10,"title":null},{"date":"2025-12-09T02:22:18Z","kind":"github_poc","ref":"https://github.com/bohemian-miser/CVE-2025-65018_Exploit_Challenge","stars":1,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"LIBPNG is vulnerable to a heap buffer overflow in `png_combine_row` triggered via `png_image_finish_read`","id":"CVE-2025-65018","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"libpng:libpng","products":["libpng:libpng"],"type":"memory_corruption","year":"2025"},"n_packages":0,"n_references":5,"next":{"headline":"Astro Cloudflare adapter has a Stored Cross Site Scripting vulnerability in /_image endpoint","id":"CVE-2025-65019"},"packages":[],"prev":{"headline":"Decidim's private data exports can lead to data leaks","id":"CVE-2025-65017"},"products":["libpng"],"published":"2025-11-24","related":[{"cvss_score":9.8,"headline":"Denial of service in n/a","id":"CVE-2017-12652","kev_date_added":null,"published":"2019-07-10"},{"cvss_score":8.8,"headline":"Out-of-bounds write in libpng","id":"CVE-2018-14550","kev_date_added":null,"published":"2019-07-10"},{"cvss_score":8.3,"headline":"LIBPNG has a heap buffer overflow in png_set_quantize","id":"CVE-2026-25646","kev_date_added":null,"published":"2026-02-10"},{"cvss_score":7.6,"headline":"LIBPNG has ARM NEON Palette Expansion Out-of-Bounds Read on AArch64","id":"CVE-2026-33636","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":7.5,"headline":"LIBPNG has use-after-free via pointer aliasing in `png_set_tRNS` and `png_set_PLTE`","id":"CVE-2026-33416","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":7.5,"headline":"Null dereference in n/a","id":"CVE-2016-10087","kev_date_added":null,"published":"2017-01-30"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2011-3464","kev_date_added":null,"published":"2012-07-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-25","vendors":["pnggroup"]},"summary":"A heap buffer overflow in libpng allows attackers to execute arbitrary code or cause denial of service via crafted interlaced PNG files.","url":"https://insights.sbomify.com/CVE-2025-65018/"}