{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-64720 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-64720 is a high-severity memory corruption vulnerability in Libpng Libpng, published on 24 Nov 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-64720 and fix it if it is affected.\n\nWhat it is: CVE-2025-64720 is a high-severity memory corruption vulnerability in Libpng Libpng, published on 24 Nov 2025. An attacker can exploit it over the internet without logging in, 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-64720 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-64720/ (Markdown: https://insights.sbomify.com/CVE-2025-64720/index.md)","id":"CVE-2025-64720","markdown":"https://insights.sbomify.com/CVE-2025-64720/index.md","name":"CVE-2025-64720","record":{"aliases":["A-463995203","ALPINE-CVE-2025-64720","ASB-A-463995203","AZL-70847","AZL-70868","AZL-70883","AZL-70888","AZL-70921","AZL-70928","AZL-70972","BELL-CVE-2025-64720","CLSA-2026-1768909961","CLSA-2026-1768911013","DEBIAN-CVE-2025-64720","ECHO-ad7d-93e1-b804","GHSA-hfc7-ph9c-wcww","JLSEC-2025-330","MINI-x2fw-4f8q-cp73","RHSA-2026:0251","ROOT-OS-ALPINE-315-CVE-2025-64720","SUSE-SU-2026:2619-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"PNG image library","requires_auth":"none","summary":"An out-of-bounds read in libpng allows attackers to cause denial of service or disclose memory when processing specific palette images.","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:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds 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, an out-of-bounds read vulnerability exists in png_image_read_composite when processing palette images with PNG_FLAG_OPTIMIZE_ALPHA enabled. The palette compositing code in png_init_read_transformations incorrectly applies background compositing during premultiplication, violating the invariant component ≤ alpha × 257 required by the simplified PNG API. This issue has been patched in version 1.6.51.","ecosystems":["Red Hat:rhel_els:7","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5"],"exploits":{"exploitdb":0,"first_seen":"2025-12-14","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-14T18:41:21Z","kind":"github_poc","ref":"https://github.com/dantsco/CVE-2025-64720-PoC","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"LIBPNG is vulnerable to a buffer overflow in `png_image_read_composite` via incorrect palette premultiplication","id":"CVE-2025-64720","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"libpng:libpng","products":["libpng:libpng"],"type":"memory_corruption","year":"2025"},"n_packages":5,"n_references":4,"next":{"headline":"Sandboxie's Integer Overflow in SbieIniServer::RC4Crypt allows sandbox escape and SYSTEM compromise","id":"CVE-2025-64721"},"packages":[{"ecosystem":"Red Hat:rhel_els:7","fixed":["2:1.5.13-8.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2026:0251"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["2:1.5.13-8.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2026:0251"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["2:1.5.13-8.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2026:0251"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["2:1.5.13-8.el7_9.1"],"introduced":["0"],"last_affected":[],"package":"libpng-static","purl":"pkg:rpm/redhat/libpng-static","source":"RHSA-2026:0251"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["1.5.30-10.13.1"],"introduced":["0"],"last_affected":[],"package":"libpng15","purl":"pkg:rpm/suse/libpng15\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2026:2619-1"}],"prev":{"headline":"Gogs: Denial of Service in repository/wiki file listing web pages","id":"CVE-2025-64719"},"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":"partial"},"state":"PUBLISHED","updated":"2025-11-25","vendors":["pnggroup"]},"summary":"An out-of-bounds read in libpng allows attackers to cause denial of service or disclose memory when processing specific palette images.","url":"https://insights.sbomify.com/CVE-2025-64720/"}