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

Low 3.7 Published Updated

Attackers can cause a denial of service in ImageMagick by providing a specific geometry string to the montage command, triggering a divide-by-zero crash.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-55212?

CVE-2025-55212 is a low-severity denial of service vulnerability in Imagemagick Imagemagick, published on 26 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-369

Which versions are affected by CVE-2025-55212?

36 open source packages ship an affected version, including Magick.NET-Q16-AnyCPU, Magick.NET-Q16-HDRI-AnyCPU and Magick.NET-Q16-HDRI-OpenMP-arm64. It affects 1 product.

PackageAffectedFixed in
Magick.NET-Q16-AnyCPU NuGetAll versions14.8.1
Magick.NET-Q16-AnyCPU NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-AnyCPU NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-AnyCPU NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-OpenMP-arm64 NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-OpenMP-arm64 NuGetAll versions14.8.1
30 more packages
Magick.NET-Q16-HDRI-OpenMP-x64 NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-OpenMP-x64 NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-arm64 NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-arm64 NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-x64 NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-x64 NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-x86 NuGetAll versions14.8.1
Magick.NET-Q16-HDRI-x86 NuGetAll versions14.8.1
Magick.NET-Q16-OpenMP-arm64 NuGetAll versions14.8.1
Magick.NET-Q16-OpenMP-arm64 NuGetAll versions14.8.1
Magick.NET-Q16-OpenMP-x64 NuGetAll versions14.8.1
Magick.NET-Q16-OpenMP-x64 NuGetAll versions14.8.1
Magick.NET-Q16-arm64 NuGetAll versions14.8.1
Magick.NET-Q16-arm64 NuGetAll versions14.8.1
Magick.NET-Q16-x64 NuGetAll versions14.8.1
Magick.NET-Q16-x64 NuGetAll versions14.8.1
Magick.NET-Q16-x86 NuGetAll versions14.8.1
Magick.NET-Q16-x86 NuGetAll versions14.8.1
Magick.NET-Q8-AnyCPU NuGetAll versions14.8.1
Magick.NET-Q8-AnyCPU NuGetAll versions14.8.1
Magick.NET-Q8-OpenMP-arm64 NuGetAll versions14.8.1
Magick.NET-Q8-OpenMP-arm64 NuGetAll versions14.8.1
Magick.NET-Q8-OpenMP-x64 NuGetAll versions14.8.1
Magick.NET-Q8-OpenMP-x64 NuGetAll versions14.8.1
Magick.NET-Q8-arm64 NuGetAll versions14.8.1
Magick.NET-Q8-arm64 NuGetAll versions14.8.1
Magick.NET-Q8-x64 NuGetAll versions14.8.1
Magick.NET-Q8-x64 NuGetAll versions14.8.1
Magick.NET-Q8-x86 NuGetAll versions14.8.1
Magick.NET-Q8-x86 NuGetAll versions14.8.1

Products include Imagemagick Imagemagick.

How do I fix CVE-2025-55212?

Upgrade Magick.NET-Q16-AnyCPU to 14.8.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-55212 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-55212 exists.

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as CLSA-2025-1759420123, CLSA-2025-1759420505, CLSA-2025-1760019285, DEBIAN-CVE-2025-55212, GHSA-fh55-q5pj-pxgw, JLSEC-2026-923 and 2 more.

Is CVE-2025-55212 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free