Skip to main content

ImageMagick CVE-2026-46520

HIGH
Heap-based Buffer Overflow (CWE-122)
2026-05-18 https://github.com/ImageMagick/ImageMagick GHSA-36wm-hprc-mcf5
7.5
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
    Identify upload endpoint using ImageMagick
  2. Delivery
    Craft multi-frame IPL with mismatched dimensions
  3. Exploit
    Submit file to image processing service
  4. Execution
    IPL coder overruns heap allocation
  5. Persist
    Worker process crashes
  6. Impact
    Repeat to sustain denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Exploitation requires the target application to invoke the ImageMagick IPL coder on attacker-supplied input - in practice this means a service that calls Magick.NET ReadImage/ReadImageCollection (or equivalent) on an uploaded file whose magic bytes or extension cause the IPL coder to be selected, AND that does not block the IPL format via policy.xml. The bug only triggers when the input contains at least two frames whose declared dimensions differ, so single-image IPL files do not reach the vulnerable path. No authentication, user interaction, or specific OS is needed (the affected NuGet variants cover AnyCPU, x86, x64, and arm64 on Windows/Linux/macOS), and CVSS PR:N/UI:N confirms an unauthenticated remote attacker against any deployment that accepts untrusted multi-frame imagery is sufficient; the practical limit is that IPL is an uncommon format, so applications that allow-list common web formats (JPEG/PNG/WebP) before invoking ImageMagick are not reachable.

Impact

The CVSS vector cleanly characterizes this as a remote, network-reachable, no-auth, no-UI denial-of-service primitive (A:H only, with C:N/I:N), which matches a heap over-write that corrupts adjacent allocator metadata and crashes the worker process rather than leaking secrets. KEV is not set and no POC reference is provided, so this is no public exploit identified at time of analysis - exploitation status is currently theoretical despite the trivial-sounding trigger. EPSS data was not supplied in this intel set, which is a gap when prioritizing against other 7.5-rated bugs; defenders should treat any service that calls ImageMagick on attacker-supplied multi-frame input (web upload pipelines, thumbnailing workers) as a real DoS target while recognizing the absence of confidentiality/integrity impact caps the worst-case to availability loss. Heap over-writes occasionally pivot to RCE on permissive allocators, but the CVSS scorer chose not to credit that here, so claims beyond DoS are speculative.

Exploit ScenarioDerived

An attacker uploads a crafted IPL image to a web service that uses Magick.NET for thumbnailing or format conversion; the file declares one set of dimensions for its first frame and larger dimensions for a subsequent frame. When the worker calls ReadImage, the IPL coder writes the oversized frame's pixels past the heap buffer sized for the original frame, corrupting the heap and crashing the process - repeated submissions drive sustained denial of service against the upload pipeline.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.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-based buffer over-write in ImageMagick's IPL decoder (exposed through Magick.NET bindings) can be triggered when the library reads a multi-image stream whose frames have differing dimensions, leading to memory corruption and process crash. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:N/I:N/A:H) signals an availability-only impact reachable without authentication, and no public exploit identified at time of analysis. Risk is amplified by how widely ImageMagick is embedded in image-processing pipelines that accept untrusted user uploads.

RemediationAI

Vendor-released patch: 14.13.1 - upgrade all referenced Magick.NET-Q16 and Magick.NET-Q16-HDRI NuGet packages to 14.13.1 or later as the primary fix, following the upstream advisory at https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-36wm-hprc-mcf5. Where immediate upgrade is not possible, disable the IPL coder in policy.xml with a line such as <policy domain="coder" rights="none" pattern="IPL" /> to refuse decoding of this format entirely (trade-off: any legitimate IPL workloads will break); additionally constrain attacker-controlled inputs by enforcing allow-lists of accepted formats at the application layer before handing bytes to ImageMagick, and apply MagickCore resource limits (memory, width, height, area) so a successful crash at least contains blast radius to a single worker process.

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

ImageMagick's IPL (Image Processing Language) coder parses a container that can hold multiple raster frames in a single file. The flaw is a CWE-122 heap-based buffer overflow: when successive frames declare different width/height than the first, the decoder writes pixel data into a heap allocation sized for the original dimensions, overrunning the buffer. The advisory targets the Magick.NET NuGet packages (Q16 and Q16-HDRI variants across AnyCPU, x64, x86, arm64, and OpenMP builds), which wrap the native MagickCore library where the underlying IPL coder lives.

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 7.5 HIGH
AV:N/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
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

When reading multiple images with different dimensions an out of bounds heap write can occur.

Executive ViewAI

Why It Matters

ImageMagick and Magick.NET image libraries are vulnerable to unauthenticated denial-of-service attacks through malicious image uploads, affecting organizations that process untrusted user content. With no vendor patch currently available, affected services face disruption or crashes. The vulnerability requires no special privileges or interaction to trigger, making it easily exploitable by external attackers.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable multi-image format uploads (IPL, GIF, TIFF with multiple frames) at the ingestion boundary; (2) Validate image dimensions before processing and reject frames with significant dimension mismatches; (3) Containerize image-processing services with enforced memory limits and automatic restart policies; (4) Deploy health checks and service redundancy to auto-failover around crashed instances; (5) Rate-limit image upload endpoints to restrict attack surface.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% 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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

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