CVE-2026-28688
C# vulnerability analysis and mitigation

Overview

CVE-2026-28688 is a heap-use-after-free vulnerability in the MSL (Magick Scripting Language) encoder of ImageMagick, where a cloned image object is destroyed twice, leading to memory corruption. It affects ImageMagick versions prior to 7.1.2-16 and 6.9.13-41, as well as Magick.NET NuGet packages prior to version 14.10.4. The vulnerability was published on March 9, 2026, by researcher ylwango613, and fixed versions were released the same day. The CVSS v3.1 base score is 4.0 (Moderate) per the GitHub Security Advisory, though NVD assigned a score of 5.3 (Medium) using a network attack vector (GitHub Advisory, ImageMagick Advisory).

Technical details

The root cause is a Use After Free condition (CWE-416) in the MSL encoder within MagickCore/image.c at line 1195 in the DestroyImage function. When the MSL coder processes an image, it clones the image object and subsequently destroys it twice, resulting in a heap-use-after-free detected by AddressSanitizer. Because the MSL coder does not actually support writing MSL output, the fix was to remove the write capability entirely from the MSL coder, eliminating the double-free code path. The vulnerability requires local access or the ability to supply a crafted image file to a vulnerable ImageMagick instance (ImageMagick Advisory, GitHub Advisory).

Impact

Successful exploitation of this vulnerability results in a low availability impact — specifically, it can cause a crash or abnormal termination of the ImageMagick process due to heap memory corruption. There is no confidentiality or integrity impact, as the vulnerability does not expose sensitive data or allow unauthorized data modification. The scope is limited to the affected component, and there is no known potential for lateral movement or privilege escalation from this vulnerability alone (GitHub Advisory, ImageMagick Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2026-28688. The EPSS score is approximately 0.047% (15th percentile), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been identified (GitHub Advisory).

Mitigation and workarounds

Users should upgrade ImageMagick to version 7.1.2-16 or later (for the 7.x branch) or 6.9.13-41 or later (for the 6.x branch). Magick.NET NuGet package users should upgrade to version 14.10.4 or later. No configuration-based workaround is documented; upgrading to a patched version is the recommended and only known remediation. Downstream distributions including Debian and SUSE have also released updated packages (ImageMagick Advisory, GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

imagemagick: 8:6.9.11.60+dfsg-1.6+deb12u8

Fixed

sid

imagemagick: 8:7.1.2.16+dfsg1-1

Fixed

trixie

imagemagick: 8:7.1.1.43+dfsg1-1+deb13u7

Fixed

Ubuntu

Fixed

bionic (esm-infra)

imagemagick: 8:6.9.7.4+dfsg-16ubuntu6.15+esm14

Fixed

devel

imagemagick

Not Affected

focal (esm-apps)

imagemagick: 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm12

Fixed

jammy

imagemagick

Affected

jammy (esm-apps)

imagemagick: 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm12

Fixed

noble

imagemagick

Affected

noble (esm-apps)

imagemagick: 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm11

Fixed

resolute

imagemagick

Not Affected

RHEL / CentOS

Unknown

Alpine

Fixed

edge

imagemagick: 7.1.2.17-r0

Fixed

v3.23

imagemagick: 7.1.2.17-r0

Fixed

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-71328HIGH8.8
  • C# logoC#
  • Microsoft.DiaSymReader.Native
NoYesSep 08, 2026
CVE-2026-69522HIGH8.8
  • C# logoC#
  • dotnet10-runtime
NoYesSep 08, 2026
CVE-2026-69439HIGH8.8
  • C# logoC#
  • dotnet10-runtime
NoYesSep 08, 2026
CVE-2026-69304MEDIUM5.9
  • C# logoC#
  • dotnet9-runtime
NoYesSep 08, 2026
GHSA-cvhv-g4rq-3hmwLOW3.3
  • C# logoC#
  • Magick.NET-Q8-OpenMP-arm64
NoYesSep 02, 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