Skip to main content

ImageMagick CVE-2026-33899

| EUVDEUVD-2026-22100 MEDIUM
Heap-based Buffer Overflow (CWE-122)
2026-04-13 https://github.com/ImageMagick/ImageMagick GHSA-cr67-pvmx-2pp2
5.3
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted zero-length XML file to ImageMagick endpoint
  2. Delivery
    NewXMLTree() computes length-1 as -1
  3. Exploit
    Null byte written before heap buffer boundary
  4. Execution
    Heap corruption occurs
  5. Persist
    ImageMagick process crashes
  6. Impact
    Denial of service achieved

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

The vulnerability is triggered when any XML content with a zero-length or near-zero-length buffer is passed to ImageMagick's NewXMLTree() function - this includes XML embedded in SVG files, MSL scripts, or any other format that routes through the XML parsing subsystem. The CVSS vector PR:N/UI:N/AV:N confirms that no authentication, user interaction, or special privileges are required on the part of the attacker; delivery of a crafted file to any exposed ImageMagick processing endpoint is sufficient. Exploitation is bounded to a denial-of-service crash on current-generation operating systems with heap mitigations enabled; code execution would require bypassing ASLR and heap integrity checks and has not been demonstrated. Applications that do not expose ImageMagick XML parsing to untrusted input - for example, those that only process trusted internal assets - are not at material risk.

Impact

The NVD CVSS 3.1 score of 5.3 (Medium) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L accurately reflects a network-exploitable, unauthenticated availability-only issue. The EPSS score of 0.04% (12th percentile) and SSVC exploitation status of 'none' are consistent with each other and confirm negligible current exploitation activity. SSVC marks the flaw as Automatable:yes - delivery of a crafted XML file requires no human-in-the-loop steps - but the constrained write primitive (a single null byte at a predictable heap offset) sharply limits real-world impact to process crashes on modern systems equipped with heap mitigations such as ASLR, guard pages, and hardened allocators. The 'Heap Overflow' and 'Buffer Overflow' tags may overstate exploitability; no evidence of code execution potential is confirmed. This is not a KEV-listed issue and carries no known public POC. The realistic priority is low for most environments, rising to moderate only for internet-facing services that accept untrusted XML or SVG files and process them through ImageMagick without input validation or sandboxing.

Exploit ScenarioDerived

An attacker uploads a crafted XML or SVG file with zero-length XML content to an internet-facing service that passes user-supplied files to ImageMagick for conversion or processing. The NewXMLTree() function computes length-1 as -1 for the empty buffer, writing a null byte one position before the heap allocation boundary, corrupting heap metadata and crashing the ImageMagick worker process. On modern platforms with heap hardening, escalation beyond a denial-of-service crash is not demonstrated; no public exploit code is identified at time of analysis.

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 – Jul 24, 2026

Heap-based buffer overflow in ImageMagick's XML parser writes a single out-of-bounds null byte when processing XML content with a zero-length buffer, affecting all ImageMagick releases prior to 7.1.2-19 and 6.9.13-44, and all Magick.NET NuGet packages prior to 14.12.0. The flaw in MagickCore/xml-tree.c allows an unauthenticated remote attacker to crash the ImageMagick process by supplying a crafted XML file, resulting in a denial-of-service condition with no confidentiality or integrity impact confirmed by NVD. No public exploit code is identified at time of analysis, and the EPSS score of 0.04% (12th percentile) and SSVC exploitation status of 'none' collectively indicate very low near-term exploitation probability.

RemediationAI

Upgrade ImageMagick to version 7.1.2-19 or later (7.x branch) or 6.9.13-44 or later (6.x branch), available at https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19; the specific patch commit is ae679e2fd19ec656bfab9f822ae4cf06bf91604d. For .NET environments, upgrade all Magick.NET NuGet packages to version 14.12.0 or later, available at https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0. Where immediate patching is not feasible, restrict XML and SVG file processing to trusted sources only, and reject or sanitize zero-length or malformed XML inputs before they reach the ImageMagick parser - this compensating control reduces crash risk but does not eliminate the underlying flaw. Running ImageMagick in an isolated container or sandboxed process (e.g., via seccomp, AppArmor, or a dedicated worker pod) limits the availability blast radius of a crash to the processing instance rather than the broader application. Red Hat and SUSE customers should monitor their respective security advisories for downstream patched package availability.

Affected VersionsENISA

ImageMagick < 7.1.2-19
ImageMagick < 6.9.13-44

Affected Packages

nuget magick.net-q16-anycpu fix: 14.12.0
nuget magick.net-q16-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-anycpu fix: 14.12.0
nuget magick.net-q16-hdri-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-openmp-arm64 fix: 14.12.0
nuget magick.net-q16-hdri-x64 fix: 14.12.0
nuget magick.net-q16-hdri-x86 fix: 14.12.0
nuget magick.net-q16-openmp-arm64 fix: 14.12.0
nuget magick.net-q16-openmp-x64 fix: 14.12.0
nuget magick.net-q16-x64 fix: 14.12.0
nuget magick.net-q16-x86 fix: 14.12.0
nuget magick.net-q8-anycpu fix: 14.12.0
nuget magick.net-q8-arm64 fix: 14.12.0
nuget magick.net-q8-openmp-arm64 fix: 14.12.0
nuget magick.net-q8-openmp-x64 fix: 14.12.0
nuget magick.net-q8-x64 fix: 14.12.0
nuget magick.net-q8-x86 fix: 14.12.0
euvd imagemagick fix: 6.9.13-44, 7.1.2-19

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 18 packages in nuget, euvd

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

Technical ContextAI · show details

The root cause (CWE-122: Heap-based Buffer Overflow) lies in the NewXMLTree() function within MagickCore/xml-tree.c. When the XML input buffer has a length of zero, the expression length-1 evaluates to -1 (or wraps to a maximum unsigned value), causing a null terminator ('\0') to be written one byte before the start of the allocated heap buffer. The upstream fix replaces the bare index arithmetic with MagickMax(length-1,0), clamping the array offset to a minimum of zero and preventing the out-of-bounds write. Affected CPE strings span the core C library (ImageMagick) as well as all Magick.NET NuGet surface-area variants: Q16, Q16-HDRI, and OpenMP builds across x64, x86, and ARM64 targets. Tags from Red Hat and SUSE suggest downstream Linux distribution packages in those ecosystems also carry the vulnerable code.

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

GitHub Advisory PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Network-exploitable via file upload with no auth or interaction; impact is crash-only with no confidentiality or integrity effect, consistent with a single null-byte write.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.3 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Apr 13, 2026 - 20:15 nvd
Patch available
CVE Published
Apr 13, 2026 - 19:33 nvd
MEDIUM 5.3

DescriptionGitHub Advisory

When Magick parses an XML file it is possible that a single zero byte is written out of the bounds.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Prevalence
High
widely deployed open-source image processing library across Linux, .NET, and CMS ecosystems
Threat Intel
1
1 source
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Development Tools 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed

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