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-2023-39978

CVE-2023-39978: ImageMagick DOS Vulnerability

CVE-2023-39978 is a denial of service vulnerability in ImageMagick that enables attackers to cause memory consumption through the Magick::Draw function. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-39978 Overview

CVE-2023-39978 is a memory leak vulnerability in ImageMagick before version 6.9.12-91 that allows attackers to cause a denial of service through excessive memory consumption. The vulnerability exists in the Magick::Draw component, where improper memory management can lead to resource exhaustion when processing specially crafted image operations.

Critical Impact

Attackers can exploit this vulnerability to exhaust system memory resources, potentially causing application crashes and denial of service conditions on systems processing untrusted image content.

Affected Products

  • ImageMagick versions prior to 6.9.12-91
  • Fedora 37 (via bundled ImageMagick packages)
  • Applications using RMagick bindings that depend on vulnerable ImageMagick versions

Discovery Timeline

  • 2023-08-08 - CVE-2023-39978 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-39978

Vulnerability Analysis

This vulnerability is classified as CWE-401 (Missing Release of Memory after Effective Lifetime), commonly known as a memory leak. The flaw resides in the CloneDrawInfo() function within ImageMagick's magick/draw.c source file. When draw information structures are cloned during image processing operations, the function improperly allocated and copied image info data without proper memory management, leading to memory that is never released.

The vulnerability requires local access and user interaction to exploit, as an attacker would need to convince a user to process a maliciously crafted image or execute drawing operations that trigger repeated cloning of draw info structures. Over time, repeated exploitation can exhaust available system memory.

Root Cause

The root cause of this vulnerability lies in the CloneDrawInfo() function's handling of the image_info member. The vulnerable code unnecessarily called CloneImageInfo(draw_info->image_info) when creating a clone of draw information, which allocated new memory for the image info structure. This memory was not properly tracked or released, resulting in a memory leak each time the function was called.

Attack Vector

The attack vector requires local access with user interaction. An attacker can exploit this vulnerability by:

  1. Crafting image files or scripts that trigger repeated Magick::Draw operations
  2. Convincing a user or application to process these files
  3. Causing the vulnerable CloneDrawInfo() function to be called repeatedly
  4. Gradually exhausting system memory resources leading to denial of service

The following patch shows how the vulnerability was fixed by removing the problematic memory allocation:

c
     clone_info->composite_mask=CloneImage(draw_info->composite_mask,0,0,
       MagickTrue,&draw_info->composite_mask->exception);
     clone_info->render=draw_info->render;
-  clone_info->image_info=CloneImageInfo(draw_info->image_info);
   clone_info->debug=draw_info->debug;
   return(clone_info);
 }

Source: ImageMagick6 GitHub Commit

Detection Methods for CVE-2023-39978

Indicators of Compromise

  • Unusually high memory consumption by ImageMagick processes or applications using ImageMagick libraries
  • System memory exhaustion events coinciding with image processing operations
  • Application crashes or out-of-memory errors when processing image files with draw operations
  • Gradual memory growth in long-running services utilizing ImageMagick

Detection Strategies

  • Monitor memory utilization of processes using ImageMagick libraries for abnormal growth patterns
  • Implement process memory limits to prevent runaway memory consumption from affecting system stability
  • Use version scanning tools to identify systems running ImageMagick versions prior to 6.9.12-91
  • Review application logs for out-of-memory exceptions related to image processing

Monitoring Recommendations

  • Configure memory usage alerts for applications that process untrusted image content
  • Implement resource quotas and cgroups to limit memory consumption of image processing services
  • Deploy endpoint detection and response (EDR) solutions to monitor for unusual resource consumption patterns
  • Regularly audit installed ImageMagick versions across your environment

How to Mitigate CVE-2023-39978

Immediate Actions Required

  • Upgrade ImageMagick to version 6.9.12-91 or later to receive the official security fix
  • Apply available security updates from your Linux distribution's package manager
  • For Fedora 37 systems, apply the security update referenced in the Fedora Package Announcement
  • Review and update RMagick bindings if using Ruby applications with ImageMagick

Patch Information

The vulnerability was fixed in ImageMagick version 6.9.12-91. The patch removes the unnecessary CloneImageInfo() call in the CloneDrawInfo() function that was causing the memory leak. Organizations should upgrade to this version or later. The fix can be reviewed in the GitHub Version Comparison between versions 6.9.12-90 and 6.9.12-91.

Workarounds

  • Implement memory limits using system resource controls (ulimit, cgroups) for processes running ImageMagick
  • Restrict processing of untrusted image content to isolated sandbox environments
  • Configure periodic restart of long-running ImageMagick-based services to reclaim leaked memory
  • Disable or limit draw operations in ImageMagick policy.xml configuration if not required
bash
# Configuration example - Set memory limits for ImageMagick processes
# Add to /etc/ImageMagick-6/policy.xml or /etc/ImageMagick/policy.xml
# Limit memory usage to prevent DoS from memory leaks
<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

  • SeverityLOW

  • CVSS Score3.3

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-401
  • Technical References
  • GitHub Version Comparison

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Commit Track

  • GitHub Pull Request Files
  • 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