CVE-2026-25988
C# vulnerability analysis and mitigation

Overview

CVE-2026-25988 is a memory leak vulnerability in ImageMagick caused by the MSL image stack index failing to refresh, resulting in images being stored in incorrect memory slots and never freed on error. It affects ImageMagick versions prior to 7.1.2-15 (in the 7.x branch) and prior to 6.9.13-40 (in the 6.x branch), as well as Magick.NET NuGet packages prior to version 14.10.3. The vulnerability was published on February 23–24, 2026, and was reported by researcher ylwango613. It carries a CVSS v3.1 base score of 5.3 (Moderate) per the GitHub Security Advisory, though some sources score it as high as 7.5 (GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is an improper update of the stack index in msl.c (CWE-401: Missing Release of Memory after Effective Lifetime; CWE-911: Improper Update of Reference Count). When processing MSL (Magick Scripting Language) image inputs, the stack index is not refreshed correctly, causing an image object to be stored in the wrong memory slot. On error conditions, this misplaced image is never freed, resulting in a memory leak. The vulnerability is remotely exploitable with no authentication or user interaction required, as an attacker can supply a crafted image file to a network-accessible ImageMagick service. LeakSanitizer output confirms direct leaks of at least 13,512 bytes per occurrence (GitHub Advisory, Github Advisory).

Impact

Successful exploitation causes memory to be progressively leaked from the ImageMagick process, potentially exhausting system memory over time and leading to service degradation or application crashes — a denial-of-service condition. There is no impact on confidentiality or data integrity; the vulnerability is limited to availability. In environments where ImageMagick processes large volumes of user-supplied images (e.g., web applications, media pipelines), repeated exploitation could cause sustained service interruptions (GitHub Advisory, Red Hat Bugzilla).

Mitigation and workarounds

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 users, update Magick.NET NuGet packages to version 14.10.3 or later. If immediate patching is not feasible, limit network exposure to ImageMagick services, enforce strict input validation on image files, and monitor memory consumption of ImageMagick processes for abnormal growth. Security updates have been issued by downstream distributors including Debian, Ubuntu (USN-8127-1), SUSE/openSUSE, and Amazon Linux 2 (GitHub Advisory, Github Advisory).

Community reactions

The vulnerability was disclosed by the ImageMagick project maintainer (dlemstra) via a GitHub Security Advisory on February 23, 2026, with credit to reporter ylwango613. Red Hat, Debian, Ubuntu, SUSE/openSUSE, and Amazon Linux have all issued downstream security advisories and package updates. No notable researcher commentary or significant social media discussion has been observed beyond standard vulnerability tracking and patch announcements (GitHub Advisory, Red Hat Bugzilla).

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

GHSA-p5rm-jg5c-8c77MEDIUM6.1
  • C# logoC#
  • Microsoft.OpenApi.Kiota
NoYesJul 24, 2026
CVE-2026-62946MEDIUM5.1
  • C# logoC#
  • Magick.NET-Q16-AnyCPU
NoYesJul 24, 2026
CVE-2026-62363MEDIUM5
  • C# logoC#
  • Magick.NET-Q16-HDRI-OpenMP-arm64
NoYesJul 24, 2026
CVE-2026-62343MEDIUM4.7
  • C# logoC#
  • Magick.NET-Q16-OpenMP-arm64
NoYesJul 24, 2026
GHSA-464c-974j-9xm6LOW3.3
  • JavaScript logoJavaScript
  • @aws-cdk/aws-codebuild
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