{"id":"CVE-2025-55212","published":"2025-08-26T16:43:15Z","modified":"2025-11-03T18:13:41Z","title":"ImageMagick affected by divide-by-zero in ThumbnailImage via montage -geometry \":\" leads to crash","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-28 and 7.1.2-2, passing a geometry string containing only a colon (\":\") to montage -geometry leads GetGeometry() to set width/height to 0. Later, ThumbnailImage() divides by these zero dimensions, triggering a crash (SIGFPE/abort), resulting in a denial of service. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0101,"percentile":0.62108,"provenance":"source"},"cwes":[{"id":"CWE-369","name":"Divide By Zero"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-fh55-q5pj-pxgw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/5f0bcf986b8b5e90567750d31a37af502b73f2af","tags":["x_refsource_MISC"]},{"url":"https://github.com/ImageMagick/ImageMagick/blob/0ba1b587be17543b664f7ad538e9e51e0da59d17/MagickCore/geometry.c#L355","tags":["x_refsource_MISC"]},{"url":"https://github.com/ImageMagick/ImageMagick/blob/0ba1b587be17543b664f7ad538e9e51e0da59d17/MagickCore/resize.c#L4625-L4629","tags":["x_refsource_MISC"]},{"url":"https://github.com/dlemstra/Magick.NET/releases/tag/14.8.1","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html","tags":[]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":12.42},{"name":"CVSS severity","points":2.59}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":["< 7.1.2-2","< 6.9.13-28"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-26T19:36:13.959186Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-AnyCPU","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-AnyCPU","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-arm64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-x64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-arm64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x86","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-arm64","vulnerableRanges":["<14.8.1"],"patched":["14.8.1"],"from":["GHSA-fh55-q5pj-pxgw"],"provenance":"source"}],"summary":{"text":"The flaw is a divide-by-zero in the ThumbnailImage() routine of ImageMagick, which is triggered when montage -geometry is given a geometry string containing only a colon, causing GetGeometry() to set width and height to zero. An attacker who can get such a geometry value processed by ImageMagick can crash the process with a SIGFPE/abort, producing a denial of service; the attack is reachable over the network with no privileges or user interaction required, though it depends on a high-complexity condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:21Z"},"euvd":{"id":"EUVD-2025-25815","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-53101","published":"2025-07-14","fixed":"14.7.0","kev":false},{"cve":"CVE-2025-55004","published":"2025-08-13","fixed":"14.8.0","kev":false},{"cve":"CVE-2025-55160","published":"2025-08-13","fixed":"14.8.0","kev":false,"link":{"from":"CVE-2025-55160","to":"CVE-2025-55212","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-AnyCPU","fromFixed":"14.8.0","toFixed":"14.8.1","daysApart":13},{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-HDRI-AnyCPU","fromFixed":"14.8.0","toFixed":"14.8.1","daysApart":13}]}},{"cve":"CVE-2025-55212","published":"2025-08-26","fixed":"14.8.1","kev":false},{"cve":"CVE-2025-55298","published":"2025-08-26","fixed":"14.8.1","kev":false},{"cve":"CVE-2025-57803","published":"2025-08-26","fixed":"14.8.1","kev":false},{"cve":"CVE-2025-62171","published":"2025-10-17","fixed":"14.9.0","kev":false},{"cve":"CVE-2025-68950","published":"2025-12-30","fixed":"14.10.1","kev":false,"link":{"from":"CVE-2025-55212","to":"CVE-2025-68950","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-HDRI-OpenMP-arm64","fromFixed":"14.8.1","toFixed":"14.10.1","daysApart":126},{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-HDRI-arm64","fromFixed":"14.8.1","toFixed":"14.10.1","daysApart":126}]}}],"package":"NuGet:Magick.NET-Q16-AnyCPU"}}