CVE-2025-55212
CVE-2025-55212 · ImageMagick affected by divide-by-zero in ThumbnailImage via montage -geometry ":" leads to crash
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 3.7 · Low · EPSS 1.0% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
imagemagick
- Versions
- < 7.1.2-2: Affected
- < 6.9.13-28: Affected
No fix published
imagemagick Debian:12
- Versions
- 8:6.9.11.60+dfsg-1.6
- 8:6.9.11.60+dfsg-1.6+deb12u1
- 8:6.9.11.60+dfsg-1.6+deb12u2
- 8:6.9.11.60+dfsg-1.6+deb12u3
- Affected ranges
- ECOSYSTEM: < 8:6.9.11.60+dfsg-1.6+deb12u4
Update to 8:6.9.11.60+dfsg-1.6+deb12u4
imagemagick Debian:13
- Versions
- 8:7.1.1.43+dfsg1-1
- 8:7.1.1.43+dfsg1-1+deb13u1
- Affected ranges
- ECOSYSTEM: < 8:7.1.1.43+dfsg1-1+deb13u2
Update to 8:7.1.1.43+dfsg1-1+deb13u2
imagemagick Debian:14
- Versions
- 8:7.1.1.43+dfsg1-1
- 8:7.1.1.46+dfsg1-1
- 8:7.1.1.47+dfsg1-1
- 8:7.1.1.47+dfsg1-2
- 8:7.1.2.1+dfsg1-1
- Affected ranges
- ECOSYSTEM: < 8:7.1.2.3+dfsg1-1
Update to 8:7.1.2.3+dfsg1-1
imagemagick Ubuntu:Pro:24.04:LTS
- Versions
- 8:6.9.11.60+dfsg-1.6ubuntu1
- 8:6.9.12.98+dfsg1-5
- 8:6.9.12.98+dfsg1-5.2build1
- 8:6.9.12.98+dfsg1-5.2build2
- 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: < 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm2
Update to 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm2
Original sources
- 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://nvd.nist.gov/vuln/detail/CVE-2025-55212