Skip to main content

Magick.NET CVE-2026-46523

MEDIUM
Use After Free (CWE-416)
2026-05-18 https://github.com/ImageMagick/ImageMagick GHSA-5r4x-w6p5-222q
6.2
CVSS 3.1 · Vendor: https://github.com/ImageMagick/ImageMagick
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted MSL image file
  2. Delivery
    Application passes file to Magick.NET MSL decoder
  3. Exploit
    Heap memory freed prematurely during parse
  4. Execution
    Freed pointer dereferenced in decoder
  5. Impact
    Host process crashes (DoS)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application processes MSL-format image files using a vulnerable Magick.NET package (any variant < 14.13.1). The CVSS vector AV:L/PR:N/UI:N indicates that no authentication or user interaction is required, but the local attack vector means the attacker must be able to deliver a crafted file to the local filesystem path that the vulnerable process reads, or supply it through an application input channel (file upload, inter-process file passing). The vulnerability is limited to availability impact (application crash/DoS) - confidentiality and integrity are unaffected per the CVSS vector, though the advisory's 'Information Disclosure' tag is an unresolved discrepancy. MSL format processing must not be explicitly disabled in the application's Magick.NET configuration for the decoder to be reachable.

Impact

The CVSS score of 6.2 with vector AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H positions this as a medium-severity, local denial-of-service. The local attack vector (AV:L) is the primary risk limiter: an attacker must be able to supply a crafted MSL file to a process that invokes Magick.NET image processing on the local system. No EPSS data was provided, no CISA KEV listing exists, and no public proof-of-concept code has been identified - these three signals together suggest low-probability opportunistic exploitation. The 'Information Disclosure' tag in the advisory metadata conflicts with the CVSS C:N rating; this inconsistency is unresolved and should be verified against the upstream ImageMagick advisory. In environments where Magick.NET processes user-supplied images (web apps, document pipelines), the local vector may be effectively reachable via file upload, slightly elevating practical risk beyond what AV:L implies in isolation. Overall: upgrade is warranted as part of normal patching cadence, not emergency response.

Exploit ScenarioDerived

An attacker submits a specially crafted MSL image file to an application that uses Magick.NET to process user-supplied images - such as a document converter, thumbnail generator, or media pipeline. When the application invokes Magick.NET on the file, the MSL decoder triggers the heap-use-after-free, causing the host process to crash and producing a denial-of-service condition. No public proof-of-concept code has been identified, but the low attack complexity (AC:L) means a working trigger likely requires only minimal fuzzing effort once an attacker understands the MSL parser's memory lifecycle.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 18, 2026

Heap-use-after-free in Magick.NET's MSL (Magick Scripting Language) decoder causes a denial-of-service condition when processing a crafted MSL image file. All Magick.NET NuGet package variants across Q16, Q16-HDRI, and multi-architecture builds prior to version 14.13.1 are affected. No public exploit code and no confirmed active exploitation (CISA KEV) have been identified at time of analysis; the CVSS vector indicates local-only access with availability-only impact, classifying this as a crasher rather than a code execution or data exposure issue.

RemediationAI

The primary fix is upgrading all Magick.NET NuGet packages to version 14.13.1 or later; this is a vendor-released patch confirmed by GHSA-5r4x-w6p5-222q (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5r4x-w6p5-222q). If an immediate upgrade is not feasible, the most actionable compensating control is to disable or filter MSL format processing: configure Magick.NET image processing pipelines to reject files with MSL extensions or MSL-format magic bytes before they reach the decoder, which eliminates the attack surface entirely at the cost of losing MSL scripting support. Additionally, in applications that process user-supplied images, enforce strict file type allowlisting at the upload boundary so that only expected raster formats (JPEG, PNG, WebP, etc.) are passed to the library. These controls trade MSL functionality for safety and should be treated as temporary mitigations pending patch deployment.

Affected Packages

nuget magick.net-q16-anycpu fix: 14.13.1
nuget magick.net-q16-arm64 fix: 14.13.1
nuget magick.net-q16-hdri-anycpu fix: 14.13.1
nuget magick.net-q16-hdri-arm64 fix: 14.13.1
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.13.1
nuget magick.net-q16-hdri-openmp-x64 fix: 14.13.1
nuget magick.net-q16-hdri-x64 fix: 14.13.1
nuget magick.net-q16-hdri-x86 fix: 14.13.1
nuget magick.net-q16-openmp-arm64 fix: 14.13.1
nuget magick.net-q16-openmp-x64 fix: 14.13.1
nuget magick.net-q16-x64 fix: 14.13.1
nuget magick.net-q16-x86 fix: 14.13.1
nuget magick.net-q8-anycpu fix: 14.13.1
nuget magick.net-q8-arm64 fix: 14.13.1
nuget magick.net-q8-openmp-arm64 fix: 14.13.1
nuget magick.net-q8-openmp-x64 fix: 14.13.1
nuget magick.net-q8-x64 fix: 14.13.1
nuget magick.net-q8-x86 fix: 14.13.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 18 packages in nuget

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Magick.NET is the .NET wrapper for ImageMagick, distributed as a family of NuGet packages targeting different quantization depths (Q16, Q16-HDRI), CPU architectures (x86, x64, arm64), and optional OpenMP parallelism. The MSL (Magick Scripting Language) decoder parses a custom XML-like scripting format embedded in image files. CWE-416 (Use After Free) identifies the root cause: heap memory is freed during MSL parsing but subsequently dereferenced, corrupting heap state. The heap-use-after-free manifests as an application crash (availability impact only per CVSS C:N/I:N/A:H), though the advisory tags also flag 'Information Disclosure' and 'Memory Corruption' - signals that under-the-right-conditions heap layout leakage or memory corruption beyond a simple crash may be theoretically possible, a discrepancy with the CVSS confidentiality rating of None that warrants vendor clarification.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/ImageMagick/ImageMagick) PRIMARY 6.2 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/ImageMagick/ImageMagick).

CVSS VectorVendor: https://github.com/ImageMagick/ImageMagick

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

A crafted MSL image can trigger a heap-use-after-free.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +31
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:nuget/magick.net-q16-anycpu
pkg:nuget/magick.net-q16-hdri-anycpu
pkg:nuget/magick.net-q16-hdri-openmp-arm64
pkg:nuget/magick.net-q16-hdri-openmp-x64
pkg:nuget/magick.net-q16-hdri-arm64
pkg:nuget/magick.net-q16-hdri-x64
pkg:nuget/magick.net-q16-hdri-x86
pkg:nuget/magick.net-q16-openmp-arm64
pkg:nuget/magick.net-q16-openmp-x64
pkg:nuget/magick.net-q16-arm64
pkg:nuget/magick.net-q16-x64
pkg:nuget/magick.net-q16-x86
pkg:nuget/magick.net-q8-anycpu
pkg:nuget/magick.net-q8-openmp-arm64
pkg:nuget/magick.net-q8-openmp-x64
pkg:nuget/magick.net-q8-arm64
pkg:nuget/magick.net-q8-x64
pkg:nuget/magick.net-q8-x86

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy