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

CVE-2026-25982: ImageMagick Heap Out-of-Bounds Vulnerability

CVE-2026-25982 is a heap out-of-bounds read flaw in ImageMagick that can cause denial of service or information disclosure. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 27, 2026

CVE-2026-25982 Overview

A heap out-of-bounds read vulnerability has been discovered in ImageMagick, the widely-used open-source software for editing and manipulating digital images. The vulnerability exists in the coders/dcm.c module, which handles DICOM (Digital Imaging and Communications in Medicine) file processing. When processing DICOM files with a specific configuration, the decoder loop incorrectly reads bytes per iteration, causing the function to read past the end of the allocated buffer.

Critical Impact

This vulnerability can lead to Denial of Service through application crashes or Information Disclosure by leaking sensitive heap memory contents into processed images.

Affected Products

  • ImageMagick versions prior to 7.1.2-15
  • ImageMagick versions prior to 6.9.13-40
  • Applications and services integrating vulnerable ImageMagick libraries for DICOM processing

Discovery Timeline

  • 2026-02-24 - CVE-2026-25982 published to NVD
  • 2026-02-25 - Last updated in NVD database

Technical Details for CVE-2026-25982

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-bounds Read), a memory corruption flaw that occurs when the software reads data past the intended boundary of a buffer. In the context of ImageMagick's DICOM parser, the coders/dcm.c module fails to properly validate buffer boundaries during the decoding loop.

The vulnerability can be exploited remotely without authentication, as ImageMagick is commonly deployed in web applications and services that process user-uploaded images. An attacker can craft a malicious DICOM file that triggers the out-of-bounds read condition when processed by a vulnerable ImageMagick installation. The impact is twofold: the application may crash (Denial of Service), or sensitive heap memory contents may be inadvertently included in the output image (Information Disclosure).

Root Cause

The root cause lies in the DICOM decoder's byte reading logic within coders/dcm.c. When processing DICOM files with specific configurations, the decoder loop miscalculates the number of bytes to read per iteration. This miscalculation results in the function attempting to read beyond the allocated buffer boundaries, accessing adjacent heap memory that was not intended to be part of the image data.

Attack Vector

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

  1. Crafting a malicious DICOM file with specific configuration parameters that trigger the vulnerable code path
  2. Uploading or sending the malicious file to a service that processes images using ImageMagick
  3. The vulnerable coders/dcm.c module processes the file and reads past buffer boundaries
  4. Depending on heap state, this results in either a crash or memory leakage into the output

The vulnerability is particularly concerning for healthcare applications and PACS (Picture Archiving and Communication System) environments where DICOM files are commonly processed, potentially exposing sensitive patient data or other heap-resident information.

Detection Methods for CVE-2026-25982

Indicators of Compromise

  • Application crashes or segmentation faults when processing DICOM files
  • Unexpected data or artifacts appearing in processed DICOM images
  • Memory access violations logged in system or application logs
  • Anomalous DICOM file uploads with unusual header configurations

Detection Strategies

  • Monitor ImageMagick processes for abnormal termination signals (SIGSEGV, SIGABRT)
  • Implement file integrity monitoring for DICOM files processed through ImageMagick pipelines
  • Deploy application-level sandboxing to detect unauthorized memory access patterns
  • Use AddressSanitizer (ASan) builds in development/testing environments to catch out-of-bounds reads

Monitoring Recommendations

  • Enable verbose logging for ImageMagick DICOM processing operations
  • Monitor system logs for repeated crashes of ImageMagick-dependent services
  • Implement alerting on unusual DICOM file characteristics during upload validation
  • Track memory usage patterns for services processing DICOM files

How to Mitigate CVE-2026-25982

Immediate Actions Required

  • Upgrade ImageMagick to version 7.1.2-15 or later for the 7.x branch
  • Upgrade ImageMagick to version 6.9.13-40 or later for the 6.x branch
  • Temporarily disable DICOM file processing if immediate patching is not possible
  • Implement input validation to reject or quarantine untrusted DICOM files

Patch Information

The ImageMagick maintainers have released patched versions that address this heap out-of-bounds read vulnerability. Users should upgrade to:

  • ImageMagick 7.x: Version 7.1.2-15 or later
  • ImageMagick 6.x: Version 6.9.13-40 or later

For detailed patch information, refer to the ImageMagick Security Advisory on GitHub.

Workarounds

  • Disable DICOM format support by modifying ImageMagick's policy.xml configuration
  • Implement strict file type validation before processing with ImageMagick
  • Process untrusted DICOM files in isolated sandbox environments
  • Use ImageMagick's resource limits to constrain memory operations
bash
# Configuration example - Disable DICOM processing in policy.xml
# Add this policy to /etc/ImageMagick-7/policy.xml or equivalent location
<policy domain="coder" rights="none" pattern="DCM" />
<policy domain="coder" rights="none" pattern="DICOM" />

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechImagemagick

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-33535: ImageMagick DoS Vulnerability

  • CVE-2026-31853: ImageMagick SFW Decoder DoS Vulnerability

  • CVE-2026-25985: ImageMagick DOS Vulnerability

  • CVE-2026-25969: ImageMagick Memory Leak DOS 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