The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-2025-55212

CVE-2025-55212: ImageMagick DOS Vulnerability

CVE-2025-55212 is a denial of service flaw in ImageMagick caused by malformed geometry strings that trigger division by zero. This article covers technical details, affected versions, and mitigation steps.

Published: April 22, 2026

CVE-2025-55212 Overview

CVE-2025-55212 is a Division by Zero vulnerability in ImageMagick, the widely-used open-source image processing software. The vulnerability exists in the geometry parsing functionality where passing a malformed geometry string containing only a colon (":") to the montage -geometry command causes GetGeometry() to set width and height values to zero. Subsequently, when ThumbnailImage() attempts to process these dimensions, it performs a division by zero, triggering a SIGFPE signal or abort that crashes the application.

This vulnerability allows remote attackers to cause a denial of service condition against any system processing user-supplied geometry strings through ImageMagick's montage utility.

Critical Impact

Remote attackers can crash ImageMagick-based applications by supplying a specially crafted geometry string, causing denial of service for image processing services.

Affected Products

  • ImageMagick versions prior to 6.9.13-28
  • ImageMagick versions prior to 7.1.2-2
  • Magick.NET versions prior to 14.8.1

Discovery Timeline

  • August 26, 2025 - CVE-2025-55212 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2025-55212

Vulnerability Analysis

This vulnerability represents a classic division by zero condition (CWE-369) that occurs due to insufficient input validation in ImageMagick's geometry parsing code. The flaw is triggered when the GetGeometry() function in MagickCore/geometry.c processes a geometry string that contains only a colon character. Under these conditions, the function sets both width and height parameters to zero without proper validation.

The vulnerable code path continues into ThumbnailImage() in MagickCore/resize.c, where these zero-valued dimensions are used in arithmetic operations. When a division operation encounters these zero values, the CPU raises a floating-point exception (SIGFPE), causing the process to terminate abruptly. This attack can be triggered remotely through any application that passes user-controlled input to ImageMagick's geometry processing functions.

Root Cause

The root cause lies in the GetGeometry() function's failure to validate that parsed width and height values are non-zero before returning them to the caller. When a geometry string like ":" is provided, the parsing logic results in zero dimensions being set. The ThumbnailImage() function then uses these values in division operations without checking for zero, leading to the crash.

The vulnerability specifically manifests when the montage command's -geometry option receives malformed input, as this code path does not include the necessary bounds checking to prevent zero-dimension processing.

Attack Vector

The attack vector is network-accessible, requiring no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying an application or web service that uses ImageMagick to process images
  2. Submitting a request with the malformed geometry string ":" to the vulnerable endpoint
  3. The application crashes when ImageMagick attempts to process the geometry parameter

The following patch removes the vulnerable zero-dimension check from ThumbnailImage():

c
   assert(exception->signature == MagickCoreSignature);
   if (IsEventLogging() != MagickFalse)
     (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
-  if ((columns == 0) || (rows == 0))
-    ThrowImageException(ImageError,"NegativeOrZeroImageSize");
   thumbnail_image=CloneImage(image,0,0,MagickTrue,exception);
   if (thumbnail_image == (Image *) NULL)
     return(thumbnail_image);

Source: ImageMagick Commit Note

Detection Methods for CVE-2025-55212

Indicators of Compromise

  • Application crashes with SIGFPE or floating-point exception signals in ImageMagick processes
  • Log entries showing geometry parsing errors with malformed input strings containing only colons
  • Unusual termination of image processing services without error recovery
  • Core dumps from ImageMagick montage operations

Detection Strategies

  • Monitor for SIGFPE signals in processes running ImageMagick binaries
  • Implement input validation rules to detect geometry strings matching the pattern "^:$" or similar malformed inputs
  • Deploy application-level logging to capture geometry parameter values before processing
  • Use process monitoring to detect repeated crashes of ImageMagick-related services

Monitoring Recommendations

  • Configure system crash handlers to alert on SIGFPE signals from ImageMagick processes
  • Implement rate limiting on image processing endpoints to mitigate DoS impact
  • Enable verbose logging for ImageMagick operations to capture attack attempts
  • Monitor for patterns of failed image processing requests that may indicate exploitation attempts

How to Mitigate CVE-2025-55212

Immediate Actions Required

  • Upgrade ImageMagick to version 6.9.13-28 or later for the 6.x branch
  • Upgrade ImageMagick to version 7.1.2-2 or later for the 7.x branch
  • For Magick.NET users, upgrade to version 14.8.1 or later
  • Implement input validation to reject malformed geometry strings before passing to ImageMagick

Patch Information

ImageMagick has released patched versions that address this vulnerability. The fix was implemented in commit 5f0bcf986b8b5e90567750d31a37af502b73f2af. Users should update to the following versions:

  • ImageMagick 6.x: Upgrade to 6.9.13-28 or later
  • ImageMagick 7.x: Upgrade to 7.1.2-2 or later

Debian users should refer to the Debian LTS Announcement for distribution-specific updates.

For additional technical details, see the GitHub Security Advisory.

Workarounds

  • Validate all geometry input strings before passing to ImageMagick, rejecting any input that does not match expected numeric patterns
  • Implement application-level input sanitization to filter out malformed geometry strings
  • Use process isolation or containerization to limit the impact of crashes on the broader system
  • Consider using ImageMagick's policy.xml to restrict potentially dangerous operations
bash
# Configuration example
# Add input validation in shell scripts before calling ImageMagick
validate_geometry() {
    if [[ "$1" =~ ^[0-9]+x[0-9]+ ]]; then
        return 0
    else
        echo "Invalid geometry string rejected"
        return 1
    fi
}

# Usage: validate_geometry "$user_input" && montage -geometry "$user_input" ...

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.28%

  • 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-369
  • Technical References
  • ImageMagick Code Snippet

  • ImageMagick Resize Function Code

  • Magick.NET Release 14.8.1

  • Debian LTS Announcement
  • Vendor Resources
  • ImageMagick Commit Note

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-40312: ImageMagick MSL Decoder DoS Vulnerability

  • CVE-2026-33908: ImageMagick XML Processing DoS Vulnerability

  • CVE-2026-33535: ImageMagick DoS Vulnerability

  • CVE-2026-31853: ImageMagick SFW Decoder 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