CVE-2025-62171
C# vulnerability analysis and mitigation

Overview

ImageMagick versions prior to 7.1.2-7 and 6.9.13-32 contain an integer overflow vulnerability in the BMP decoder on 32-bit systems. The vulnerability was discovered on October 17, 2025, and affects the BMP decoder functionality in coders/bmp.c when calculating the extent value by multiplying image columns by bits per pixel (NVD, GitHub Advisory).

Technical details

The vulnerability occurs when calculating the extent value by multiplying image columns by bits per pixel. On 32-bit systems with sizet of 4 bytes, a malicious BMP file with specific dimensions can cause this multiplication to overflow and wrap to zero. A specially crafted 58-byte BMP file with width set to 536,870,912 and 32 bits per pixel can trigger this overflow, causing the bytesper_line calculation to become zero. The vulnerability has a CVSS v3.1 base score of 7.5 (HIGH) according to NVD, while GitHub rates it at 5.9 (MEDIUM) (NVD).

Impact

This vulnerability only affects 32-bit builds of ImageMagick where default resource limits for width, height, and area have been manually increased beyond their defaults. 64-bit systems with size_t of 8 bytes are not vulnerable, and systems using default ImageMagick resource limits are not vulnerable. The vulnerability can lead to denial of service conditions when processing specially crafted BMP files (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in ImageMagick versions 7.1.2-7 and 6.9.13-32. Users are advised to upgrade to these versions or later. For systems that cannot be immediately upgraded, maintaining default ImageMagick resource limits provides protection against this vulnerability (NVD).

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