CVE-2025-55212
C# vulnerability analysis and mitigation

Overview

ImageMagick, a free and open-source software used for editing and manipulating digital images, was found to contain a divide-by-zero vulnerability (CVE-2025-55212) prior to versions 6.9.13-28 and 7.1.2-2. The vulnerability was discovered and disclosed on August 26, 2025, affecting all versions of ImageMagick before the patched releases (GitHub Advisory).

Technical details

The vulnerability occurs when passing a geometry string containing only a colon (":") to montage -geometry command. This input leads GetGeometry() to set width/height to 0, which later causes ThumbnailImage() to perform a division by these zero dimensions. The issue is tracked as CWE-369 (Divide By Zero) and has received varying CVSS scores: NVD rates it as HIGH (7.5) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, while GitHub rates it as LOW (3.7) with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L (NVD, GitHub Advisory).

Impact

When exploited, the vulnerability results in a denial of service condition through an immediate abnormal termination of the ImageMagick process. The crash manifests as either a SIGFPE signal or an abort, depending on the environment. The vulnerability can be triggered without requiring external input files, making it particularly concerning (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in ImageMagick versions 6.9.13-28 and 7.1.2-2. The fix includes defensive rejection of zero dimensions early in ThumbnailImage() and improved validation in GetGeometry(). Users are advised to upgrade to these patched versions to mitigate the vulnerability (GitHub Advisory, Magick.NET).

Additional resources


SourceThis report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-57803HIGH8.8
  • C#C#
  • Magick.NET-Q8-x86
NoYesAug 26, 2025
CVE-2025-55298HIGH8.8
  • C#C#
  • Magick.NET-Q16-HDRI-x86
NoYesAug 26, 2025
CVE-2025-55212HIGH7.5
  • C#C#
  • cpe:2.3:a:imagemagick:imagemagick
NoYesAug 26, 2025
CVE-2025-56236MEDIUM6.1
  • C#C#
  • FormCMS
NoYesAug 28, 2025
CVE-2025-57807LOW3.8
  • C#C#
  • ImageMagick-perl
NoYesSep 05, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management