CVE-2026-25987
C# vulnerability analysis and mitigation

Overview

CVE-2026-25987 is a heap buffer over-read vulnerability in the MAP image decoder of ImageMagick, a widely used open-source image editing library. When processing crafted MAP files, the decoder reads beyond the intended heap buffer boundary, potentially causing application crashes or unintended memory disclosure. The vulnerability affects ImageMagick versions prior to 7.1.2-15 (7.x branch) and prior to 6.9.13-40 (6.x branch), as well as Magick.NET NuGet packages prior to version 14.10.3. It was disclosed on February 23–24, 2026, with patches released simultaneously. The GitHub Security Advisory assigns a CVSS v3.1 score of 5.3 (Moderate), while Feedly's aggregated data estimates a higher score of 9.1 (Critical) based on network-reachable, unauthenticated exploitation potential (GitHub Advisory, Red Hat).

Technical details

The root cause is an out-of-bounds read (CWE-125) in ImageMagick's MAP image decoder, where insufficient bounds checking allows the decoder to read one or more bytes beyond the allocated heap buffer when parsing a maliciously crafted MAP file. AddressSanitizer output confirms a heap-buffer-overflow READ of size 1 at an out-of-bounds address during image decoding. The vulnerability is exploitable remotely with no authentication or user interaction required — an attacker simply needs to supply a crafted MAP file to an application or service that processes images via ImageMagick. The fix was introduced in commit bbae021 in the ImageMagick repository (GitHub Advisory, Github Advisory).

Impact

Successful exploitation can result in two primary consequences: unintended disclosure of sensitive data from adjacent heap memory regions (confidentiality impact), and denial of service through application crashes during image decoding (availability impact). There is no integrity impact, as the vulnerability does not allow data modification. Applications and services that accept user-supplied MAP image files — such as web applications using ImageMagick for image processing — are most at risk, and memory disclosure could potentially expose sensitive runtime data such as credentials or cryptographic material stored in process memory (GitHub Advisory, Red Hat Bugzilla).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.028% (0.000280), placing it in a low percentile for near-term exploitation likelihood. The vulnerability was reported by researcher ylwango613 and disclosed responsibly through GitHub's security advisory process (GitHub Advisory).

Exploitation steps

  1. Craft a malicious MAP file: Create a specially crafted MAP image file designed to trigger an out-of-bounds read in ImageMagick's MAP decoder — for example, by manipulating header fields or pixel data length values to cause the decoder to read beyond the allocated buffer boundary.
  2. Identify a target: Locate a service or application that processes MAP image files using a vulnerable version of ImageMagick (< 7.1.2-15 or < 6.9.13-40), such as a web-based image upload/conversion service.
  3. Submit the crafted file: Upload or submit the malicious MAP file to the target application via its image processing interface (e.g., HTTP file upload endpoint).
  4. Trigger the vulnerability: When ImageMagick processes the file, the MAP decoder reads beyond the heap buffer boundary, either causing a crash (DoS) or leaking adjacent heap memory contents in an error response or log output.
  5. Extract leaked data (if applicable): Analyze any returned error output, partial image data, or application responses for leaked memory contents that may include sensitive runtime information (GitHub Advisory).

Indicators of compromise

  • Logs: Application or web server logs showing repeated image processing requests with MAP file uploads, particularly from unexpected sources; ImageMagick error logs containing AddressSanitizer-style messages such as heap-buffer-overflow or READ of size 1 during MAP file decoding.
  • Process: Unexpected crashes or restarts of image processing worker processes; core dump files generated by the ImageMagick process (convert, magick, or application-embedded calls).
  • File System: Presence of unusual or malformed .map files in upload directories or temporary image processing folders.
  • Network: Repeated HTTP requests submitting MAP-format image files to image processing endpoints from a single source IP, especially if followed by server error responses (500-level HTTP codes).

Mitigation and workarounds

The primary remediation is to upgrade ImageMagick to version 7.1.2-15 or later (7.x branch) or 6.9.13-40 or later (6.x branch). For .NET applications using Magick.NET NuGet packages, upgrade to version 14.10.3 or later. As interim workarounds: restrict or disable processing of MAP image files from untrusted sources; implement input validation to reject malformed or unexpected MAP files before they reach ImageMagick; and deploy image processing services behind network segmentation to limit exposure. Linux distribution packages (Ubuntu USN-8069-1, Debian DSA-6158/6159, openSUSE, Amazon Linux 2 ALAS2-2026-3211) have also released updated packages (GitHub Advisory, Red Hat, Ubuntu Advisory).

Community reactions

The vulnerability received routine coverage from Linux distribution security teams, with Ubuntu, Debian, openSUSE, SUSE, and Amazon Linux all issuing security advisories and updated packages within weeks of disclosure. Red Hat tracked the issue via Bugzilla and assigned medium severity. No notable researcher commentary or significant social media discussion has been identified beyond standard vulnerability database aggregation and scanner detection updates from Tenable (Nessus) and Qualys.

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-2026-54632HIGH7.5
  • C# logoC#
  • SIPSorcery
NoYesJul 28, 2026
CVE-2026-62363MEDIUM5
  • C# logoC#
  • ImageMagick-libs
NoYesJul 30, 2026
CVE-2026-62946MEDIUM4.7
  • C# logoC#
  • ImageMagick-doc
NoYesJul 30, 2026
CVE-2026-62343MEDIUM4.7
  • C# logoC#
  • Magick.NET-Q16-HDRI-x86
NoYesJul 30, 2026
GHSA-464c-974j-9xm6LOW3.3
  • JavaScript logoJavaScript
  • github.com/aws/aws-cdk-go/awscdk/v2
NoYesJul 24, 2026

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