NetSight
medium6.5

CVE-2026-25982

ImageMagick has Heap Out-of-Bounds Read in DCM Decoder (ReadDCMImage)

Impact

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).

Affected packages

EcosystemPackageAffectedFixed in
nugetMagick.NET-Q16-AnyCPU< 14.10.314.10.3
nugetMagick.NET-Q16-HDRI-AnyCPU< 14.10.314.10.3
nugetMagick.NET-Q16-HDRI-OpenMP-arm64< 14.10.314.10.3
nugetMagick.NET-Q16-HDRI-arm64< 14.10.314.10.3
nugetMagick.NET-Q16-HDRI-x64< 14.10.314.10.3
nugetMagick.NET-Q16-HDRI-x86< 14.10.314.10.3
nugetMagick.NET-Q16-OpenMP-arm64< 14.10.314.10.3
nugetMagick.NET-Q16-OpenMP-x64< 14.10.314.10.3
nugetMagick.NET-Q16-OpenMP-x86< 14.10.314.10.3
nugetMagick.NET-Q16-arm64< 14.10.314.10.3
nugetMagick.NET-Q16-x64< 14.10.314.10.3
nugetMagick.NET-Q16-x86< 14.10.314.10.3
nugetMagick.NET-Q16-HDRI-OpenMP-x64< 14.10.314.10.3
nugetMagick.NET-Q8-AnyCPU< 14.10.314.10.3
nugetMagick.NET-Q8-OpenMP-arm64< 14.10.314.10.3
nugetMagick.NET-Q8-OpenMP-x64< 14.10.314.10.3
nugetMagick.NET-Q8-arm64< 14.10.314.10.3
nugetMagick.NET-Q8-x64< 14.10.314.10.3
nugetMagick.NET-Q8-x86< 14.10.314.10.3

Affected products

VendorProductAffected versions
ImagemagickImagemagick
before 6.9.13-40
from 7.0.0-0 before 7.1.2-15

Weakness classification

References