CVE-2025-62594
C# vulnerability analysis and mitigation

Overview

A vulnerability in ImageMagick's CLAHE (Contrast Limited Adaptive Histogram Equalization) implementation has been identified as CVE-2025-62594. The vulnerability affects ImageMagick versions below 7.1.2-7 and stems from improper handling of tile width/height parameters becoming zero in the CLAHEImage() function of MagickCore/enhance.c (GitHub Advisory).

Technical details

The vulnerability manifests through two distinct but related unsafe behaviors in the CLAHE implementation. First, an unsigned integer underflow occurs when tileinfo.height equals 0, causing tileinfo.height - 1 to wrap to a very large value, leading to out-of-bounds pointer arithmetic. Second, a division-by-zero vulnerability exists where operations are performed using tileinfo.width or tileinfo.height without proper zero-value validation. The vulnerability has received a CVSS v3.1 score of 4.7 (Moderate) with a vector string of CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H (GitHub Advisory).

Impact

The primary impact is a Denial-of-Service (DoS) condition, which can manifest as either a crash or sustained resource exhaustion through memory/cache thrashing when processing crafted parameters or small images via CLI or API. While theoretical secondary impacts include potential memory corruption through out-of-bounds memory accesses, no reliable code execution has been demonstrated (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in ImageMagick version 7.1.2-8. The fix includes implementing proper input validation and bounds checks for tile dimensions before performing division or pointer arithmetic operations. Users are advised to upgrade to this version or later (GitHub Advisory).

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-62171HIGH7.5
  • C#C#
  • Magick.NET-Q16-HDRI-AnyCPU
NoYesOct 17, 2025
CVE-2025-11849MEDIUM6.4
  • JavaScriptJavaScript
  • Mammoth
NoYesOct 17, 2025
CVE-2025-61413MEDIUM6.1
  • C#C#
  • Piranha
NoNoOct 23, 2025
CVE-2025-11842MEDIUM5.3
  • C#C#
  • Smidge
NoYesOct 16, 2025
CVE-2025-62594MEDIUM4.7
  • C#C#
  • Magick.NET-Q16-HDRI-arm64
NoYesOct 27, 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