CVE-2026-25982
Received Received - Intake
Heap Out-of-Bounds Read in ImageMagick DICOM Decoder Causes DoS

Publication date: 2026-02-24

Last updated on: 2026-02-25

Assigner: GitHub, Inc.

Description
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a heap out-of-bounds read vulnerability exists in the `coders/dcm.c` module. When processing DICOM files with a specific configuration, the decoder loop incorrectly reads bytes per iteration. This causes the function to read past the end of the allocated buffer, potentially leading to a Denial of Service (crash) or Information Disclosure (leaking heap memory into the image). Versions 7.1.2-15 and 6.9.13-40 contain a patch.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-24
Last Modified
2026-02-25
Generated
2026-06-16
AI Q&A
2026-02-24
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
imagemagick imagemagick to 6.9.13-40 (exc)
imagemagick imagemagick From 7.0.0-0 (inc) to 7.1.2-15 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-25982 is a moderate severity vulnerability in the ImageMagick software, specifically in the coders/dcm.c module that handles decoding of DICOM files.

The issue occurs when the decoder loop processes DICOM files with certain configurations and incorrectly reads bytes per iteration, causing it to read beyond the allocated heap buffer boundary.

This out-of-bounds read can lead to a Denial of Service (application crash) or Information Disclosure by leaking heap memory into the processed image.

The vulnerability affects ImageMagick versions prior to 7.1.2-15 and 6.9.13-40, which contain patches to fix this issue.

Mitigation Strategies

The primary mitigation step is to upgrade ImageMagick to version 7.1.2-15 or later, or 6.9.13-40 or later, where the vulnerability has been patched.

Additionally, avoid processing untrusted or malformed DICOM files until the update is applied to prevent potential Denial of Service or Information Disclosure.

Impact Analysis

This vulnerability can impact you by causing a Denial of Service, where the ImageMagick application crashes when processing specially crafted DICOM files.

Additionally, it can lead to Information Disclosure by leaking heap memory contents into the processed image, potentially exposing sensitive data.

Compliance Impact

I don't know

Detection Guidance

This vulnerability exists in ImageMagick versions prior to 7.1.2-15 and 6.9.13-40 when processing DICOM files. Detection involves identifying if vulnerable versions of ImageMagick are installed and if DICOM files are being processed.

You can check the installed ImageMagick version with the command:

  • magick -version

To detect attempts to exploit this vulnerability, monitor logs or network traffic for unusual crashes or errors related to ImageMagick processing DICOM files.

No specific detection commands or signatures are provided in the available resources.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-25982. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart