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-33902

CVE-2026-33902: ImageMagick Buffer Overflow Vulnerability

CVE-2026-33902 is a stack overflow vulnerability in ImageMagick's FX expression parser that allows attackers to crash the process. This article covers the technical details, affected versions, and mitigation strategies.

Published: April 17, 2026

CVE-2026-33902 Overview

A stack overflow vulnerability exists in ImageMagick's FX expression parser that allows an attacker to crash the image processing application by providing a deeply nested expression. ImageMagick is a widely-used free and open-source software suite for editing and manipulating digital images, making this vulnerability potentially impactful across numerous applications and web services that rely on ImageMagick for image processing.

Critical Impact

This vulnerability enables denial of service attacks through application crashes when processing maliciously crafted FX expressions with excessive nesting depth.

Affected Products

  • ImageMagick versions below 7.1.2-19
  • ImageMagick versions below 6.9.13-44
  • Magick.NET versions prior to 14.12.0

Discovery Timeline

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

Technical Details for CVE-2026-33902

Vulnerability Analysis

This vulnerability is classified as CWE-674 (Uncontrolled Recursion), which occurs when the FX expression parser fails to properly limit the depth of nested expressions during parsing operations. The FX expression language in ImageMagick allows complex image manipulation operations through mathematical and logical expressions. When an attacker crafts an expression with excessive nesting levels, the recursive parsing function exhausts the available stack memory, resulting in a stack overflow condition.

The local attack vector requires user interaction, meaning an attacker would need to convince a user to process a malicious image file or FX expression, or exploit an automated image processing pipeline that accepts untrusted input. The impact is limited to availability, as no confidentiality or integrity breach occurs—the vulnerability results in application termination rather than code execution.

Root Cause

The root cause stems from uncontrolled recursion in the FX expression parser component. The parser lacks adequate depth checking when processing nested parenthetical expressions or function calls, allowing attackers to trigger unbounded recursive calls that exceed stack memory limits. This is a common pattern in expression parsers that rely on recursive descent parsing without implementing explicit depth limits.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious FX expression containing deeply nested constructs. The attack requires local access to the system and user interaction—such as opening a specially crafted image file or processing an FX expression through the convert command or API. Automated image processing pipelines that accept user-uploaded images with FX expressions are particularly vulnerable.

The deeply nested expression would trigger recursive parsing calls that consume stack space until the available stack is exhausted, causing the ImageMagick process to crash. This can be leveraged for denial of service attacks against services that process user-supplied images.

Detection Methods for CVE-2026-33902

Indicators of Compromise

  • Unexpected ImageMagick process crashes or segmentation faults during image processing operations
  • Log entries indicating stack overflow or stack exhaustion errors from ImageMagick processes
  • Unusual image processing requests containing excessively long or complex FX expressions
  • Application monitoring alerts for repeated process terminations in image processing services

Detection Strategies

  • Monitor system logs for ImageMagick process crashes with stack-related error messages
  • Implement input validation to detect and reject FX expressions exceeding reasonable nesting depth thresholds
  • Deploy application-level monitoring to track abnormal termination patterns in image processing workflows
  • Review access logs for submissions containing unusually large or complex image processing parameters

Monitoring Recommendations

  • Configure crash dump collection for ImageMagick processes to enable post-incident analysis
  • Implement rate limiting on image processing endpoints to mitigate denial of service impact
  • Monitor resource utilization patterns for image processing services to detect anomalous behavior
  • Set up alerting for repeated process failures in production image processing infrastructure

How to Mitigate CVE-2026-33902

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
  • Review and restrict FX expression capabilities in production environments where possible

Patch Information

Security patches addressing this stack overflow vulnerability are available through the official ImageMagick repository. The fix is implemented in commit d3c0a37485314c5ccef72efb18f3847cd53868ba. For detailed security information, refer to the GitHub Security Advisory. Users of Magick.NET should update to version 14.12.0 which incorporates the patched ImageMagick libraries.

Workarounds

  • Disable or restrict FX expression parsing functionality if not required for your use case
  • Implement pre-processing validation to reject expressions with excessive nesting depth
  • Run ImageMagick processes with resource limits (e.g., using ulimit -s to set stack size limits) to prevent uncontrolled crashes
  • Isolate image processing operations in sandboxed environments to limit impact of process crashes
bash
# Configuration example - Set resource limits for ImageMagick processes
# Add to ImageMagick policy.xml to restrict processing capabilities
# Location: /etc/ImageMagick-7/policy.xml or /etc/ImageMagick-6/policy.xml

# Limit memory and processing resources
# <policy domain="resource" name="memory" value="256MiB"/>
# <policy domain="resource" name="recursion" value="50"/>

# Run ImageMagick with stack size limits
ulimit -s 8192
convert input.png -fx 'expression' output.png

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechImagemagick

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

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

  • GitHub Security Advisory

  • Magick.NET Release Update
  • Related CVEs
  • CVE-2026-40310: ImageMagick Buffer Overflow Vulnerability

  • CVE-2026-40183: ImageMagick Buffer Overflow Vulnerability

  • CVE-2026-40169: ImageMagick Buffer Overflow Vulnerability

  • CVE-2026-34238: ImageMagick Buffer Overflow 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