Skip to main content

Imagemagick CVE-2026-33908

| EUVDEUVD-2026-22110 HIGH
Uncontrolled Recursion (CWE-674)
2026-04-13 GitHub_M GHSA-fwvm-ggf6-2p4x
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Craft deeply nested XML file
  2. Delivery
    Submit to ImageMagick-enabled service
  3. Exploit
    Trigger DestroyXMLTree() recursive cleanup
  4. Execution
    Exhaust process stack memory
  5. Persist
    Crash ImageMagick worker process
  6. Impact
    Deny service availability

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Target ImageMagick deployment must accept and process XML-containing image formats from untrusted sources, specifically SVG (Scalable Vector Graphics), MVG (Magick Vector Graphics), or MSL (Magick Scripting Language) files. The policy.xml configuration must permit XML coders and not enforce nesting depth restrictions. Default installations of ImageMagick with standard coder policies enabled are vulnerable when processing user-supplied files without pre-validation.

Impact

Real-world risk is moderate despite the 7.5 CVSS base score. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates trivial exploitation prerequisites - remote attackers can trigger the condition without authentication by submitting malicious XML files. However, multiple mitigating factors reduce practical severity: EPSS score of 0.04% places this in the 12th percentile of exploitation likelihood, indicating security researchers and threat actors have not prioritized this vulnerability. No active exploitation confirmed (not in CISA KEV). Attack complexity is low from a technical perspective, but exploitation requires the target ImageMagick instance to accept and process XML input from untrusted sources - many deployments only process trusted image files or operate behind authentication layers. Impact is limited to availability (A:H) with no confidentiality or integrity compromise, making this lower priority than RCE vulnerabilities. SSVC decision tree would likely classify as 'scheduled' remediation for most organizations unless the deployment specifically processes user-uploaded SVG/XML files without validation.

Exploit ScenarioDerived

An attacker generates a malicious SVG file containing XML structures nested 10,000+ levels deep, consuming only kilobytes of disk space due to repetitive structure. They submit this file to a web application that uses ImageMagick for thumbnail generation or format conversion. When ImageMagick's XML parser processes the file and attempts cleanup via DestroyXMLTree(), the recursive deallocation exhausts the process stack within seconds, crashing the ImageMagick worker process. Repeated submissions create sustained denial-of-service, preventing legitimate image processing operations. Publicly available exploit code exists demonstrating the attack technique.

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 – Apr 15, 2026

Stack exhaustion in ImageMagick's XML tree parser allows remote unauthenticated attackers to trigger denial-of-service conditions by submitting specially crafted XML files with deeply nested structures. Affects all versions below 6.9.13-44 and 7.1.2-19 across multiple platforms including the Magick.NET wrapper. EPSS score of 0.04% (12th percentile) indicates low observed exploitation probability, though the network-accessible attack vector (AV:N) and lack of authentication requirements (PR:N) present theoretical risk for internet-facing deployments processing untrusted XML input.

RemediationAI

Upgrade to ImageMagick 6.9.13-44 or later for 6.x deployments, or 7.1.2-19 or later for 7.x deployments. The fix implemented in commit ccdc01180276aa2cb3d4a32a611aa4f417061cd8 adds recursion depth limits to DestroyXMLTree() to prevent stack exhaustion. For Magick.NET users, upgrade to version 14.12.0 or later which incorporates the patched native library (https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0). As a temporary workaround for environments unable to immediately patch, implement application-layer XML input validation to reject files with excessive nesting depth (recommend maximum 100-200 levels), disable processing of XML-based image formats (SVG, MVG, MSL) via policy.xml configuration if not required, or isolate ImageMagick processing in resource-limited containers with stack size restrictions to prevent broader system impact.

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

ImageMagick processes various image formats including those embedding XML metadata (SVG, MVG, MSL). The vulnerability resides in the DestroyXMLTree() cleanup function in the XML parsing library, which implements recursive memory deallocation without stack depth guards. CWE-674 (Uncontrolled Recursion) manifests when the parser traverses deeply nested XML structures during cleanup operations. Each recursion level consumes stack frames until the process exhausts available stack memory, typically 8MB on Linux systems or 1MB on Windows, causing abrupt termination. This affects both the C/C++ ImageMagick core (CPE cpe:2.3:a:imagemagick:imagemagick) and downstream projects like Magick.NET that wrap the native library.

Know when Imagemagick gets its next vulnerability

  • 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 (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch released
Apr 14, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 13, 2026 - 21:06 nvd
HIGH 7.5

DescriptionCVE.org

ImageMagick is free and open-source software used for editing and manipulating digital images. In versions below both 7.1.2-19 and 6.9.13-44, Magick frees the memory of the XML tree via the DestroyXMLTree() function; however, this process is executed recursively with no depth limit imposed. When Magick processes an XML file with deeply nested structures, it will exhaust the stack memory, resulting in a Denial of Service (DoS) attack. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19.

Executive ViewAI

Why It Matters

ImageMagick's XML parser is vulnerable to denial-of-service attacks via maliciously crafted XML files, affecting all versions before 6.9.13-44 and 7.1.2-19. Organizations using ImageMagick or Magick.NET for document processing, image conversion, or web-based file handling should prioritize patching to prevent service disruption from unauthenticated remote attackers.

Business Impact: Medium
Compensating Controls

Apply vendor patch. If immediate patching is unavailable: restrict XML file uploads to trusted sources only; implement file size limits (e.g., max XML depth of 50 levels) and request timeouts on parsing operations; disable or isolate ImageMagick services from direct internet access; use Web Application Firewall rules to block requests with deeply nested XML patterns.

Threat Intelligence Overview

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL 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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Medium
Technical Impact
Partial

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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2016-3714 HIGH POC
8.4 May 05

The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.

CVE-2016-3718 MEDIUM POC
5.5 May 05

The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct

CVE-2016-3715 MEDIUM POC
5.5 May 05

The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary fi

CVE-2017-15277 MEDIUM POC
6.5 Oct 12

ReadGIFImage in coders/gif.c in ImageMagick 7.0.6-1 and GraphicsMagick 1.3.26 leaves the palette uninitialized when proc

CVE-2016-5841 CRITICAL POC
9.8 Dec 13

Integer overflow in MagickCore/profile.c in ImageMagick before 7.0.2-1 allows remote attackers to cause a denial of serv

CVE-2016-3717 MEDIUM POC
5.5 May 05

The LABEL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to read arbitrary files vi

CVE-2016-5118 CRITICAL
9.8 Jun 10

The OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbit

CVE-2016-5689 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2016-5690 CRITICAL POC
9.8 Dec 13

The ReadDCMImage function in DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to

CVE-2016-5691 CRITICAL POC
9.8 Dec 13

The DCM reader in ImageMagick before 6.9.4-5 and 7.x before 7.0.1-7 allows remote attackers to have unspecified impact b

CVE-2026-122006 CRITICAL POC
9.8 Nov 04

Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi

CVE-2017-14138 CRITICAL POC
9.8 Sep 04

ImageMagick 7.0.6-5 has a memory leak vulnerability in ReadWEBPImage in coders/webp.c because memory is not freed in cer

Vendor StatusVendor

SUSE

Severity: High
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