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

CVE-2026-28494: ImageMagick Buffer Overflow Vulnerability

CVE-2026-28494 is a stack buffer overflow flaw in ImageMagick's morphology kernel parsing that allows stack corruption through unbounded memory operations. This article covers technical details, affected versions, and mitigation.

Published: March 13, 2026

CVE-2026-28494 Overview

A stack buffer overflow vulnerability exists in ImageMagick's morphology kernel parsing functions that allows attackers to cause stack corruption through specially crafted kernel strings. ImageMagick is widely-deployed open-source software used for editing and manipulating digital images across web applications, content management systems, and automated image processing pipelines.

The vulnerability occurs when user-controlled kernel strings exceeding expected lengths are copied into fixed-size stack buffers via memcpy without proper bounds checking. This results in stack corruption that can lead to integrity and availability impacts on affected systems.

Critical Impact

Successful exploitation of this stack buffer overflow can corrupt adjacent stack data, potentially enabling control flow hijacking or causing application crashes in image processing workflows.

Affected Products

  • ImageMagick versions prior to 7.1.2-16
  • ImageMagick versions prior to 6.9.13-41
  • Applications and services using vulnerable ImageMagick libraries for image processing

Discovery Timeline

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

Technical Details for CVE-2026-28494

Vulnerability Analysis

This vulnerability is classified as CWE-121 (Stack-based Buffer Overflow). The flaw resides in ImageMagick's morphology kernel parsing functionality, which processes user-supplied kernel definition strings used in image morphology operations such as erosion, dilation, and convolution filters.

When parsing these kernel strings, the affected code copies the input data into a fixed-size buffer allocated on the stack. The memcpy operation used for this copy does not validate that the source data fits within the destination buffer's boundaries. An attacker can craft a kernel string that exceeds the buffer size, causing the copy operation to overwrite adjacent stack memory including saved return addresses, frame pointers, and local variables.

The local attack vector requires user interaction—typically achieved by convincing a user or automated system to process a malicious image file or configuration containing the crafted kernel string. While the vulnerability does not directly impact confidentiality, it poses significant risks to system integrity and availability.

Root Cause

The root cause is insufficient bounds checking in the morphology kernel parsing code. The implementation allocates a fixed-size stack buffer to hold kernel definition strings but fails to validate the length of user-supplied input before performing the memory copy operation. This is a classic pattern that leads to stack buffer overflow vulnerabilities.

The absence of proper input length validation before the memcpy call allows attackers to write beyond the buffer boundary, corrupting the execution stack and potentially gaining control over program execution flow.

Attack Vector

The attack requires local access and user interaction, typically through processing a specially crafted image file or morphology kernel definition. Attack scenarios include:

  1. Malicious Image Processing: An attacker supplies a crafted image file with embedded morphology operations to web applications or content management systems using ImageMagick
  2. Direct API Exploitation: Applications that accept user-defined kernel strings for morphology operations can be targeted directly
  3. Automated Pipeline Attacks: Image processing pipelines that handle untrusted input without proper sanitization are vulnerable

The vulnerability manifests in the morphology kernel parsing functions when processing oversized kernel definition strings. When the kernel string length exceeds the fixed stack buffer allocation, the unchecked memcpy operation writes past the buffer boundary, corrupting adjacent stack memory. This can overwrite critical stack data including return addresses and local variables. See the GitHub Security Advisory for complete technical details.

Detection Methods for CVE-2026-28494

Indicators of Compromise

  • Unexpected ImageMagick process crashes or segmentation faults during image processing operations
  • Application logs showing morphology kernel parsing errors or memory corruption indicators
  • Abnormally large or malformed kernel definition strings in image files or processing requests
  • Core dumps indicating stack corruption in ImageMagick library functions

Detection Strategies

  • Monitor ImageMagick processes for unexpected termination signals (SIGSEGV, SIGABRT) that may indicate exploitation attempts
  • Implement input validation to detect and reject oversized morphology kernel strings before they reach ImageMagick processing
  • Deploy application-level logging to capture and analyze morphology operation parameters
  • Use Address Sanitizer (ASan) in development and testing environments to detect buffer overflow conditions

Monitoring Recommendations

  • Configure logging for all ImageMagick invocations including morphology operations and kernel definitions
  • Implement alerting for unusual patterns in image processing failures or crashes
  • Monitor system resource usage for signs of denial-of-service conditions resulting from exploitation attempts
  • Review web application firewall logs for suspicious image upload patterns targeting ImageMagick endpoints

How to Mitigate CVE-2026-28494

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 ImageMagick policy configurations to limit morphology operations if not required
  • Implement input validation for any user-controlled data passed to ImageMagick morphology functions

Patch Information

ImageMagick has released security patches addressing this vulnerability. The fixes are included in versions 7.1.2-16 and 6.9.13-41. Organizations should update to these versions or later through their package manager or by downloading directly from the official ImageMagick repositories.

For detailed patch information and changes, refer to the GitHub Security Advisory GHSA-932h-jw47-73jm.

Workarounds

  • Disable morphology operations through ImageMagick's policy.xml configuration if not required for your use case
  • Implement strict input validation and length limits on any user-supplied kernel definition strings
  • Use containerization or sandboxing to isolate ImageMagick processing from critical system components
  • Consider using alternative image processing libraries for untrusted input until patching is complete
bash
# Example policy.xml restriction to disable morphology operations
# Add to /etc/ImageMagick-7/policy.xml or equivalent
<policy domain="delegate" rights="none" pattern="morphology" />

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

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-121
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33536: ImageMagick Buffer Overflow Vulnerability

  • CVE-2026-32636: ImageMagick Buffer Overflow Vulnerability

  • CVE-2026-32259: ImageMagick Buffer Overflow Vulnerability

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