CVE-2025-55212
LOW3.7EPSS 0.39%ImageMagick affected by divide-by-zero in ThumbnailImage via montage -geometry ":" leads to crash
Published: 8/26/2025Modified: 4/28/2026
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.
Affected packages (19)
- Debian/imagemagickfrom 0, < 8:6.9.11.60+dfsg-1.3+deb11u6
- NuGet/Magick.NET-Q16-AnyCPUfrom 0, < 14.8.1
- NuGet/Magick.NET-Q16-arm64from 0, < 14.8.1
- NuGet/Magick.NET-Q16-HDRI-AnyCPUfrom 0, < 14.8.1
- NuGet/Magick.NET-Q16-HDRI-arm64from 0, < 14.8.1
- NuGet/Magick.NET-Q16-HDRI-OpenMP-arm64from 0, < 14.8.1
- NuGet/Magick.NET-Q16-HDRI-OpenMP-x64from 0, < 14.8.1
- NuGet/Magick.NET-Q16-HDRI-x64from 0, < 14.8.1
- NuGet/Magick.NET-Q16-HDRI-x86from 0, < 14.8.1
- NuGet/Magick.NET-Q16-OpenMP-arm64from 0, < 14.8.1
- NuGet/Magick.NET-Q16-OpenMP-x64from 0, < 14.8.1
- NuGet/Magick.NET-Q16-x64from 0, < 14.8.1
- NuGet/Magick.NET-Q16-x86from 0, < 14.8.1
- NuGet/Magick.NET-Q8-AnyCPUfrom 0, < 14.8.1
- NuGet/Magick.NET-Q8-arm64from 0, < 14.8.1
- NuGet/Magick.NET-Q8-OpenMP-arm64from 0, < 14.8.1
- NuGet/Magick.NET-Q8-OpenMP-x64from 0, < 14.8.1
- NuGet/Magick.NET-Q8-x64from 0, < 14.8.1
- NuGet/Magick.NET-Q8-x86from 0, < 14.8.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L |
References (9)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-55212
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2025-55212
- PATCHhttps://github.com/ImageMagick/ImageMagick
- WEBhttps://github.com/dlemstra/Magick.NET/releases/tag/14.8.1
- WEBhttps://github.com/ImageMagick/ImageMagick/blob/0ba1b587be17543b664f7ad538e9e51e0da59d17/MagickCore/geometry.c#L355
- WEBhttps://github.com/ImageMagick/ImageMagick/blob/0ba1b587be17543b664f7ad538e9e51e0da59d17/MagickCore/resize.c#L4625-L4629
- WEBhttps://github.com/ImageMagick/ImageMagick/commit/5f0bcf986b8b5e90567750d31a37af502b73f2af
- WEBhttps://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-fh55-q5pj-pxgw
- WEBhttps://lists.debian.org/debian-lts-announce/2025/09/msg00012.html