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
    • 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-28688

CVE-2026-28688: ImageMagick Use-After-Free Vulnerability

CVE-2026-28688 is a heap use-after-free flaw in ImageMagick's MSL encoder that causes images to be destroyed twice. This article covers the technical details, affected versions, security impact, and mitigation.

Published: March 13, 2026

CVE-2026-28688 Overview

A heap-use-after-free vulnerability has been discovered in ImageMagick, a widely-used open-source software suite for editing and manipulating digital images. This memory corruption flaw exists in the MSL (Magick Scripting Language) encoder component, where a cloned image is improperly destroyed twice. The vulnerability affects ImageMagick versions prior to 7.1.2-16 and 6.9.13-41.

Critical Impact

Attackers exploiting this use-after-free condition could cause denial of service by crashing the ImageMagick process when processing specially crafted image files.

Affected Products

  • ImageMagick versions prior to 7.1.2-16
  • ImageMagick versions prior to 6.9.13-41
  • Applications and services that utilize ImageMagick for image processing

Discovery Timeline

  • 2026-03-10 - CVE-2026-28688 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-28688

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption vulnerability that occurs when a program continues to use a pointer after the memory it references has been freed. In ImageMagick's MSL encoder, the flaw manifests during image cloning operations where the same image object is destroyed twice, leading to a double-free condition that results in heap-use-after-free behavior.

The MSL coder component processes Magick Scripting Language files, which are XML-based scripts used to perform batch image manipulation operations. During the processing of certain malformed or specially crafted MSL input, the encoder improperly handles image clone operations, resulting in the premature deallocation of memory that is subsequently accessed.

The vulnerability can be triggered remotely via network-accessible image processing services. It requires no authentication and does not involve user interaction, making it exploitable in automated image processing pipelines. While the immediate impact is limited to availability (denial of service), use-after-free vulnerabilities can potentially be leveraged for more severe attacks in some circumstances.

Root Cause

The root cause stems from improper memory management in the MSL encoder's image cloning logic. When an image is cloned during MSL processing, the reference counting or ownership tracking mechanism fails to properly account for all references to the cloned object. This leads to a scenario where the DestroyImage() function is called twice on the same image structure—first during normal cleanup and again when the cloned reference is disposed of—resulting in a double-free condition.

The ImageMagick maintainers addressed this by removing the write capability from the MSL coder entirely, as the MSL format does not support write operations in a meaningful way. This eliminates the vulnerable code path completely.

Attack Vector

The attack vector is network-based, where an attacker can submit a maliciously crafted MSL file to any application or service that uses ImageMagick for image processing. Common attack scenarios include:

  • Web applications that accept user-uploaded images and process them with ImageMagick
  • Content management systems with automatic image processing capabilities
  • Cloud-based image manipulation services
  • Email servers that process image attachments

The vulnerability requires no prior authentication or user interaction, making it suitable for automated exploitation attempts against vulnerable ImageMagick deployments.

Detection Methods for CVE-2026-28688

Indicators of Compromise

  • Unexpected crashes or segmentation faults in ImageMagick processes during MSL file processing
  • Core dumps containing ImageMagick stack traces involving DestroyImage() or MSL coder functions
  • Application logs showing repeated ImageMagick process restarts or failures
  • Memory corruption error messages in system logs related to heap operations

Detection Strategies

  • Monitor ImageMagick process stability and track unexpected terminations or restarts
  • Implement input validation to detect and block MSL file uploads in contexts where they are not expected
  • Deploy file type verification that validates image file headers match their extensions
  • Use application-level logging to track ImageMagick processing operations and identify suspicious patterns

Monitoring Recommendations

  • Configure crash monitoring for all services utilizing ImageMagick libraries
  • Implement anomaly detection for unusual file processing patterns or repeated failures
  • Set up alerts for memory-related errors in application logs
  • Monitor system resource utilization for signs of denial of service conditions

How to Mitigate CVE-2026-28688

Immediate Actions Required

  • Update ImageMagick to version 7.1.2-16 or later for the 7.x branch
  • Update ImageMagick to version 6.9.13-41 or later for the 6.x branch
  • Restrict MSL file processing by configuring ImageMagick's policy file to disable the MSL coder
  • Implement input validation to reject MSL files in image upload endpoints

Patch Information

The vulnerability has been fixed in ImageMagick versions 7.1.2-16 and 6.9.13-41. The fix removes the write capability from the MSL coder entirely, eliminating the vulnerable code path. Organizations should update to these versions or later. Detailed patch information is available in the ImageMagick GitHub Security Advisory.

Workarounds

  • Disable the MSL coder in ImageMagick's policy.xml configuration file if MSL processing is not required
  • Implement strict file type filtering to prevent MSL files from reaching ImageMagick
  • Deploy ImageMagick in a sandboxed environment to limit the impact of potential crashes
  • Use input sanitization to strip or reject XML-based image formats before processing
bash
# Configuration example - Disable MSL coder in policy.xml
# Add this line to /etc/ImageMagick-7/policy.xml or /etc/ImageMagick-6/policy.xml
<policy domain="coder" rights="none" pattern="MSL" />

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechImagemagick

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-416
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-28687: ImageMagick Use-After-Free Vulnerability

  • CVE-2026-28691: ImageMagick Use-After-Free Vulnerability

  • CVE-2026-25983: ImageMagick Use-After-Free Vulnerability

  • CVE-2026-25988: ImageMagick Use-After-Free 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