
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25982 is a heap out-of-bounds read vulnerability in ImageMagick's DICOM file decoder (coders/dcm.c), capable of causing Denial of Service or Information Disclosure. It affects ImageMagick versions prior to 7.1.2-15 (7.x branch) and prior to 6.9.13-40 (6.x branch), as well as Magick.NET NuGet packages prior to version 14.10.3. The vulnerability was published on February 23–24, 2026, with patches released simultaneously. It carries a CVSS v3.1 base score of 6.5 (Medium) (GitHub Advisory, Github Advisory DB).
The root cause is an out-of-bounds read (CWE-125) in the ReadDCMImage function within coders/dcm.c. When processing DICOM image files with a specific decoder configuration, the loop incorrectly calculates the number of bytes to read per iteration, causing it to read past the end of the allocated heap buffer. The vulnerability is network-exploitable with no authentication or user interaction required — an attacker simply needs to supply a crafted DICOM file to an application that uses ImageMagick for image processing. The issue was reported by researcher marckwei and patched by the ImageMagick maintainer dlemstra (GitHub Advisory, Red Hat Bugzilla).
Successful exploitation can result in two primary outcomes: a Denial of Service via application crash when ImageMagick processes a malicious DICOM file, or Information Disclosure where heap memory contents are leaked into the output image, potentially exposing sensitive in-memory data. Integrity is not impacted. The scope is limited to the affected component, but in environments where ImageMagick processes DICOM files from untrusted sources (e.g., medical imaging web applications), the memory disclosure could expose sensitive runtime data (GitHub Advisory, Feedly).
ReadDCMImage decoder loop within coders/dcm.c..dcm files; error messages referencing coders/dcm.c or ReadDCMImage.convert, magick) immediately after processing DICOM input.Upgrade ImageMagick to version 7.1.2-15 or later (7.x branch) or 6.9.13-40 or later (6.x branch). For Magick.NET users, upgrade to version 14.10.3 or later. As a workaround where immediate patching is not feasible, restrict DICOM file processing to trusted sources only, implement input validation, and consider sandboxing ImageMagick operations. Linux distribution packages (Debian, SUSE, Amazon Linux 2) have also released updated packages incorporating the fix (GitHub Advisory, Red Hat Bugzilla).
Red Hat tracked the vulnerability via their Bugzilla system and assigned it medium severity, with downstream package updates issued for multiple Linux distributions including Debian (DSA-6158, DSA-6159, DLA-4497), SUSE, and Amazon Linux 2. The openSUSE Tumbleweed March 2026 monthly update also included the fix. No notable public researcher commentary or significant social media discussion has been identified beyond standard vulnerability tracking and distribution advisories.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."