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

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

CVE-2026-28687 is a heap use-after-free flaw in ImageMagick's MSL decoder that enables attackers to access freed memory via malicious files. This article covers technical details, affected versions, and mitigation.

Published: March 13, 2026

CVE-2026-28687 Overview

ImageMagick is a widely-used, free, and open-source software suite for editing and manipulating digital images. A heap use-after-free vulnerability has been identified in ImageMagick's MSL (Magick Scripting Language) decoder that allows an attacker to trigger access to freed memory by crafting a malicious MSL file. This vulnerability affects versions prior to 7.1.2-16 and 6.9.13-41.

Critical Impact

Attackers can exploit this use-after-free vulnerability to cause denial of service conditions by crafting malicious MSL files that trigger access to freed heap memory during image processing operations.

Affected Products

  • ImageMagick versions prior to 7.1.2-16
  • ImageMagick versions prior to 6.9.13-41
  • Systems processing untrusted MSL files with vulnerable ImageMagick installations

Discovery Timeline

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

Technical Details for CVE-2026-28687

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption flaw that occurs when a program continues to use a pointer after the memory it references has been freed. In the context of ImageMagick's MSL decoder, this manifests when processing specially crafted MSL files causes the application to reference heap memory that has already been deallocated.

The MSL decoder is responsible for parsing and executing Magick Scripting Language files, which provide a scripting interface for ImageMagick operations. The use-after-free condition can be triggered through network-accessible attack vectors, requiring no authentication or user interaction. While the vulnerability primarily impacts availability, the memory safety issue could potentially be leveraged for more severe exploitation in certain configurations.

Root Cause

The root cause lies in improper memory management within ImageMagick's MSL decoder. When processing certain MSL file structures, the decoder fails to properly track the lifecycle of heap-allocated objects. This results in a scenario where memory is freed but pointers to that memory remain in use, creating a dangling pointer condition that leads to use-after-free access when those pointers are subsequently dereferenced.

Attack Vector

The vulnerability is exploitable via network-based attack vectors. An attacker can craft a malicious MSL file designed to trigger the use-after-free condition when processed by ImageMagick. Attack scenarios include:

  • Uploading malicious MSL files to web applications that process images using ImageMagick
  • Serving malicious MSL content through compromised or attacker-controlled image hosting services
  • Including malicious MSL files in document attachments that may be automatically processed

The attack requires no privileges and no user interaction beyond the target system processing the malicious file. Due to the nature of heap use-after-free vulnerabilities, exploitation can lead to crashes, denial of service, or in some cases, arbitrary code execution if an attacker can control the contents of the freed memory region.

Detection Methods for CVE-2026-28687

Indicators of Compromise

  • Unexpected crashes or segmentation faults in ImageMagick processes during MSL file processing
  • Abnormal memory access patterns or error logs indicating use-after-free conditions
  • Presence of suspicious or malformed MSL files in upload directories or processing queues
  • Increased resource consumption or service instability in image processing pipelines

Detection Strategies

  • Monitor ImageMagick process crashes and analyze core dumps for use-after-free signatures
  • Implement file type validation to detect and quarantine suspicious MSL files before processing
  • Deploy memory sanitizer tools (AddressSanitizer, Valgrind) in testing environments to identify exploitation attempts
  • Enable verbose logging for ImageMagick operations to capture processing anomalies

Monitoring Recommendations

  • Configure real-time monitoring for ImageMagick process health and crash events
  • Implement alerting for unusual MSL file uploads or processing requests
  • Review system logs for memory-related errors in applications using ImageMagick libraries
  • Track version information across ImageMagick deployments to ensure patch compliance

How to Mitigate CVE-2026-28687

Immediate Actions Required

  • Upgrade ImageMagick to version 7.1.2-16 or later for the 7.x branch
  • Upgrade ImageMagick to version 6.9.13-41 or later for the 6.x branch
  • Review and restrict MSL file processing capabilities in production environments
  • Implement input validation to filter potentially malicious MSL content

Patch Information

The vulnerability has been fixed in ImageMagick versions 7.1.2-16 and 6.9.13-41. Organizations should prioritize upgrading to these patched versions. For detailed information about the fix, refer to the ImageMagick Security Advisory.

Workarounds

  • Disable MSL coder in ImageMagick's policy.xml configuration file if MSL processing is not required
  • Implement strict file type allowlists to prevent processing of MSL files from untrusted sources
  • Run ImageMagick processes in sandboxed or containerized environments to limit impact of exploitation
  • Apply resource limits to ImageMagick processes to mitigate potential denial of service impact
bash
# Disable MSL coder in ImageMagick policy.xml
# Add the following to /etc/ImageMagick-6/policy.xml or /etc/ImageMagick-7/policy.xml
<policy domain="coder" rights="none" pattern="MSL" />

# Verify the policy is active
identify -list policy | grep -i 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.04%

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