Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-33908

CVE-2026-33908: ImageMagick XML Processing DoS Vulnerability

CVE-2026-33908 is a denial of service vulnerability in ImageMagick caused by unbounded recursion in XML parsing. Deeply nested XML structures exhaust stack memory. This article covers technical details, affected versions, and patches.

Published: April 17, 2026

CVE-2026-33908 Overview

ImageMagick, a widely-used free and open-source software suite for editing and manipulating digital images, contains a stack exhaustion vulnerability in its XML processing functionality. The vulnerability exists in versions below 7.1.2-19 and 6.9.13-44, where the DestroyXMLTree() function performs recursive memory deallocation without imposing a depth limit. When processing maliciously crafted XML files with deeply nested structures, the recursive execution exhausts stack memory, resulting in a Denial of Service (DoS) condition.

Critical Impact

Attackers can cause ImageMagick to crash by submitting specially crafted XML files with excessive nesting depth, potentially disrupting image processing services and web applications that rely on ImageMagick for image manipulation.

Affected Products

  • ImageMagick versions below 7.1.2-19 (version 7.x branch)
  • ImageMagick versions below 6.9.13-44 (version 6.x branch)
  • Magick.NET versions below 14.12.0

Discovery Timeline

  • 2026-04-13 - CVE CVE-2026-33908 published to NVD
  • 2026-04-13 - Last updated in NVD database

Technical Details for CVE-2026-33908

Vulnerability Analysis

This vulnerability is classified under CWE-674 (Uncontrolled Recursion), which describes a condition where a function calls itself in a loop without proper termination controls. In ImageMagick's case, the DestroyXMLTree() function is responsible for freeing memory allocated to parsed XML tree structures. When processing XML data, ImageMagick builds an in-memory tree representation that mirrors the document's hierarchical structure.

The fundamental issue lies in the recursive nature of the destruction algorithm. For each node in the XML tree, the function recursively calls itself to handle child nodes before deallocating the parent. While this approach works correctly for typical XML documents with reasonable nesting depths, it becomes problematic when an attacker provides an XML file engineered with extreme nesting levels.

Root Cause

The root cause is the absence of depth limiting in the DestroyXMLTree() function's recursive implementation. Each recursive call consumes stack space for local variables, return addresses, and function parameters. When an XML document contains thousands of nested elements, the cumulative stack consumption exceeds available stack memory, triggering a stack overflow condition that crashes the application.

This architectural weakness allows resource exhaustion through controlled input, transforming a legitimate memory management operation into an attack vector.

Attack Vector

The attack is network-exploitable and requires no authentication or user interaction. An attacker can trigger the vulnerability by submitting a specially crafted XML file to any service or application that processes images using vulnerable ImageMagick versions. Common attack scenarios include:

The exploitation mechanism involves creating an XML document with deeply nested elements. When ImageMagick parses this document and subsequently attempts to free the XML tree structure, the recursive destruction function exhausts available stack memory. This causes the ImageMagick process to terminate abnormally, denying service to legitimate users.

Web applications that accept user-uploaded images are particularly susceptible, as ImageMagick is commonly used for image validation, resizing, and format conversion. An attacker needs only to submit a malicious file through any image upload endpoint to trigger the crash.

Detection Methods for CVE-2026-33908

Indicators of Compromise

  • Unexpected ImageMagick process crashes or terminations during XML processing operations
  • Stack overflow errors in application logs associated with ImageMagick operations
  • Segmentation fault signals (SIGSEGV) in processes handling image uploads
  • Repeated service restarts for applications using ImageMagick for image processing

Detection Strategies

  • Monitor application logs for stack exhaustion errors related to XML parsing in ImageMagick
  • Implement file inspection rules to detect XML files with unusually deep nesting structures
  • Deploy application-level monitoring to track ImageMagick process stability and crash frequency
  • Configure alerting for abnormal memory consumption patterns during image processing operations

Monitoring Recommendations

  • Enable process monitoring for ImageMagick worker processes to detect unexpected terminations
  • Implement rate limiting on image upload endpoints to reduce potential attack surface
  • Configure application performance monitoring (APM) to track resource utilization during image processing
  • Review web application firewall (WAF) logs for patterns indicating malicious file uploads

How to Mitigate CVE-2026-33908

Immediate Actions Required

  • Upgrade ImageMagick to version 7.1.2-19 or later for the 7.x branch
  • Upgrade ImageMagick to version 6.9.13-44 or later for the 6.x branch
  • Update Magick.NET to version 14.12.0 or later if using the .NET wrapper
  • Implement input validation to restrict XML nesting depth before processing

Patch Information

The ImageMagick development team has addressed this vulnerability by implementing depth controls in the recursive XML tree destruction function. The fix is available in ImageMagick version 7.1.2-19 and version 6.9.13-44. The specific commit implementing the fix is available for review. For .NET applications, Magick.NET version 14.12.0 incorporates the patched ImageMagick libraries.

Additional details about this vulnerability can be found in the GitHub Security Advisory GHSA-fwvm-ggf6-2p4x.

Workarounds

  • Implement pre-processing validation to reject XML files exceeding safe nesting depth thresholds
  • Configure policy.xml to restrict XML-based image format processing if not required
  • Isolate ImageMagick processing in sandboxed environments with resource limits
  • Apply stack size limits to ImageMagick worker processes to contain resource exhaustion
bash
# Configuration example - Restrict ImageMagick XML processing in policy.xml
# Add to /etc/ImageMagick-7/policy.xml or /etc/ImageMagick-6/policy.xml

# Disable potentially dangerous coders if XML processing is not required
# <policy domain="coder" rights="none" pattern="MVG" />
# <policy domain="coder" rights="none" pattern="SVG" />

# Set resource limits to contain DoS impact
# <policy domain="resource" name="memory" value="256MiB"/>
# <policy domain="resource" name="map" value="512MiB"/>
# <policy domain="resource" name="disk" value="1GiB"/>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechImagemagick

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-674
  • Technical References
  • GitHub Commit Update

  • GitHub Release 7.1.2-19

  • GitHub Security Advisory GHSA-fwvm-ggf6-2p4x

  • GitHub Magick.NET Release 14.12.0
  • Related CVEs
  • CVE-2026-40312: ImageMagick MSL Decoder DoS Vulnerability

  • CVE-2026-33535: ImageMagick DoS Vulnerability

  • CVE-2026-31853: ImageMagick SFW Decoder DoS Vulnerability

  • CVE-2026-25985: ImageMagick DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English