{"answers":{"affected":"12 open source packages ship an affected version, including Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU and Magick.NET-Q16-HDRI-x86. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-66628 in the wild and no public exploit code.","fix":"Upgrade Magick.NET-Q16-AnyCPU to 14.10.0 or later.","what":"CVE-2025-66628 is a high-severity vulnerability in Imagemagick Imagemagick, published on 10 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-66628 and fix it if it is affected.\n\nWhat it is: CVE-2025-66628 is a high-severity vulnerability in Imagemagick Imagemagick, published on 10 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-66628 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Magick.NET-Q16-AnyCPU (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q16-AnyCPU (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q16-HDRI-AnyCPU (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q16-HDRI-AnyCPU (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q16-HDRI-x86 (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q16-HDRI-x86 (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q16-x86 (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q16-x86 (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q8-AnyCPU (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q8-AnyCPU (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q8-x86 (NuGet): affected all versions; fixed in 14.10.0\n- Magick.NET-Q8-x86 (NuGet): affected all versions; fixed in 14.10.0\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-66628/ (Markdown: https://insights.sbomify.com/CVE-2025-66628/index.md)","id":"CVE-2025-66628","markdown":"https://insights.sbomify.com/CVE-2025-66628/index.md","name":"CVE-2025-66628","record":{"aliases":["DEBIAN-CVE-2025-66628","GHSA-6hjr-v6g4-3fm8","JLSEC-2026-929","MINI-g26f-f8cc-wwc2","SUSE-SU-2025:4429-1","UBUNTU-CVE-2025-66628","openSUSE-SU-2025:15829-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"ImageMagick library","requires_auth":"none","summary":"An integer overflow in the TIM decoder allows out-of-bounds reads on 32-bit systems, potentially causing crashes or data exposure.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"imagemagick","vendor":"imagemagick"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"ImageMagick is a software suite to create, edit, compose, or convert bitmap images. In versions 7.1.2-9 and prior, the TIM (PSX TIM) image parser contains a critical integer overflow vulnerability in its ReadTIMImage function (coders/tim.c). The code reads width and height (16-bit values) from the file header and calculates image_size = 2 * width * height without checking for overflow. On 32-bit systems (or where size_t is 32-bit), this calculation can overflow if width and height are large (e.g., 65535), wrapping around to a small value. This results in a small heap allocation via AcquireQuantumMemory and later operations relying on the dimensions can trigger an out of bounds read. This issue is fixed in version 7.1.2-10.","ecosystems":["NuGet","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-12-11","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-11T05:45:07Z","kind":"github_poc","ref":"https://github.com/Sumitshah00/CVE-2025-66628","stars":1,"title":null}],"tier":"poc_unverified"},"has_fix":true,"headline":"ImageMagick is vulnerable to an Integer Overflow in TIM decoder leading to out of bounds read (32-bit only)","id":"CVE-2025-66628","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":"imagemagick:imagemagick","products":["imagemagick:imagemagick"],"type":"integer_overflow","year":"2025"},"n_packages":15,"n_references":2,"next":{"headline":"HedgeDoc is missing state parameter in OAuth2 flows could lead to CSRF","id":"CVE-2025-66629"},"packages":[{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q16-AnyCPU","purl":null,"source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q16-AnyCPU","purl":"pkg:nuget/Magick.NET-Q16-AnyCPU","source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q16-HDRI-AnyCPU","purl":null,"source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q16-HDRI-AnyCPU","purl":"pkg:nuget/Magick.NET-Q16-HDRI-AnyCPU","source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q16-HDRI-x86","purl":null,"source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q16-HDRI-x86","purl":"pkg:nuget/Magick.NET-Q16-HDRI-x86","source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q16-x86","purl":null,"source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q16-x86","purl":"pkg:nuget/Magick.NET-Q16-x86","source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q8-AnyCPU","purl":null,"source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q8-AnyCPU","purl":"pkg:nuget/Magick.NET-Q8-AnyCPU","source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q8-x86","purl":null,"source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"NuGet","fixed":["14.10.0"],"introduced":["0"],"last_affected":[],"package":"Magick.NET-Q8-x86","purl":"pkg:nuget/Magick.NET-Q8-x86","source":"GHSA-6hjr-v6g4-3fm8"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5-LTSS","fixed":["6.8.8.1-71.218.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSS","source":"SUSE-SU-2025:4429-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["6.8.8.1-71.218.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/suse/ImageMagick\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2025:4429-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["7.1.2.10-2.1"],"introduced":["0"],"last_affected":[],"package":"ImageMagick","purl":"pkg:rpm/opensuse/ImageMagick\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15829-1"}],"prev":{"headline":"Wasmi's Linear Memory has a Critical Use After Free Vulnerability","id":"CVE-2025-66627"},"products":["ImageMagick"],"published":"2025-12-10","related":[{"cvss_score":9.8,"headline":"Use after free in n/a","id":"CVE-2019-19952","kev_date_added":null,"published":"2019-12-24"},{"cvss_score":9.8,"headline":"Null dereference in n/a","id":"CVE-2018-16328","kev_date_added":null,"published":"2018-09-01"},{"cvss_score":9.8,"headline":"Null dereference in n/a","id":"CVE-2018-16329","kev_date_added":null,"published":"2018-09-01"},{"cvss_score":9.8,"headline":"Null dereference in n/a","id":"CVE-2017-18210","kev_date_added":null,"published":"2018-03-01"},{"cvss_score":9.8,"headline":"Denial of service in n/a","id":"CVE-2017-14138","kev_date_added":null,"published":"2017-09-04"},{"cvss_score":9.8,"headline":"Denial of service in n/a","id":"CVE-2014-9826","kev_date_added":null,"published":"2017-03-30"},{"cvss_score":9.8,"headline":"Null dereference in n/a","id":"CVE-2016-10144","kev_date_added":null,"published":"2017-03-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-12-11","vendors":["ImageMagick"]},"summary":"An integer overflow in the TIM decoder allows out-of-bounds reads on 32-bit systems, potentially causing crashes or data exposure.","url":"https://insights.sbomify.com/CVE-2025-66628/"}