CVE-2025-55212: ImageMagick · Divide By Zero
Affects ImageMagickSource GCVE Database
Not known to be exploited · CVSS 3.7 Low : upgrade to 7.1.2-2 or 6.9.13-28 when convenient.
Data as of 29 Oct 2026, 23:50 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 3.7 |
|---|
- Patch
- Available – fixed in 7.1.2-2, 6.9.13-28
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 26 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade ImageMagick to 7.1.2-2 or 6.9.13-28.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ImageMagick ImageMagick | Affected
| Fixed in
|
AI-suggested
Upgrade ImageMagick to version 6.9.13-28 or later, or 7.1.2-2 or later, where this vulnerability has been fixed. No other mitigation is required as the issue is resolved in these versions.
Description
A divide-by-zero vulnerability exists in ImageMagick versions prior to 6.9.13-28 and 7.1.2-2. When a geometry string containing only a colon (":") is passed to the montage command with the -geometry option, it causes width and height to be set to zero. This leads to a division by zero in the ThumbnailImage() function, resulting in a crash and denial of service. The issue has been fixed in versions 6.9.13-28 and 7.1.2-2.
References
- github.com/ImageMagick/ImageMagick/security/advisories/GHSA-fh55-q5pj-pxgw (opens in a new tab)
- github.com/ImageMagick/ImageMagick/commit/5f0bcf986b8b5e90567750d31a37af502b73f2af (opens in a new tab)
- github.com/ImageMagick/ImageMagick/blob/0ba1b587be17543b664f7ad538e9e51e0da59d17/MagickCore/geometry.c (opens in a new tab)
- github.com/ImageMagick/ImageMagick/blob/0ba1b587be17543b664f7ad538e9e51e0da59d17/MagickCore/resize.c (opens in a new tab)
- github.com/dlemstra/Magick.NET/releases/tag/14.8.1 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/09/msg00012.html (opens in a new tab)