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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-08-26 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-55212, DEBIAN-CVE-2025-55212, GHSA-fh55-q5pj-pxgw, ALPINE-CVE-2025-55212
- Record: https://cvemate.com/vulnerability/CVE-2025-55212 · JSON: https://cvemate.com/vulnerability/CVE-2025-55212/json

## 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.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.135%, percentile 67.579%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 22)

- alpine imagemagick (Alpine Linux): ≥ 7.0.0-0, \< 7.1.2.8-r0 \| \< 7.1.2.8-r0
- debian imagemagick (Debian): \< 8:6.9.11.60+dfsg-1.6+deb12u4 \| \< 8:7.1.1.43+dfsg1-1+deb13u2 \| \< 8:7.1.2.3+dfsg1-1
- ubuntu imagemagick (Ubuntu): \< 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm2
- imagemagick imagemagick: \< 7.1.2-2 \| \< 6.9.13-28 \| ≥ 7.0.0-0, \< 7.1.2-2
- NuGet Magick.NET-Q16-AnyCPU (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-AnyCPU (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-OpenMP-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-OpenMP-x64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-x64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-HDRI-x86 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-OpenMP-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-OpenMP-x64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-x64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q16-x86 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q8-AnyCPU (NuGet): \< 14.8.1
- NuGet Magick.NET-Q8-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q8-OpenMP-arm64 (NuGet): \< 14.8.1
- NuGet Magick.NET-Q8-OpenMP-x64 (NuGet): \< 14.8.1

## 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>
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html>
- <https://ubuntu.com/security/CVE-2025-55212>
- <https://www.cve.org/CVERecord?id=CVE-2025-55212>
- <https://github.com/ImageMagick/ImageMagick/commit/43d92bf855155e8e716ecbb50ed94c2ed41ff9f6>
- <https://github.com/ImageMagick/ImageMagick6/commit/3482953ef0af1e538cb776162a8d278141e0b9a0>
- <https://github.com/ImageMagick/ImageMagick6/commit/5fddcf974342d8e5e02f604bc2297c038e3d4196>
- <https://ubuntu.com/security/notices/USN-7756-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-55212>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-55212>
- <https://github.com/ImageMagick/ImageMagick>
- <https://security.alpinelinux.org/vuln/CVE-2025-55212>

---

Data as of 2026-12-05T09:11:21.031Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
