CVE-2017-12644
Description
ImageMagick 7.0.6-1 has a memory leak in ReadDCMImage (coders/dcm.c) that can be triggered by a crafted DICOM file, potentially leading to denial of service or arbitrary code execution.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
ImageMagick 7.0.6-1 has a memory leak in ReadDCMImage (coders/dcm.c) that can be triggered by a crafted DICOM file, potentially leading to denial of service or arbitrary code execution.
Vulnerability
ImageMagick version 7.0.6-1 contains a memory leak vulnerability in the ReadDCMImage function within coders/dcm.c [1][2]. The bug occurs when processing a specially crafted DICOM image, causing allocated memory to not be properly freed. The vulnerability is confirmed by a proof-of-concept test case [2].
Exploitation
An attacker can exploit this vulnerability by providing a malformed DICOM image file to an ImageMagick-based application or script that processes untrusted images. No special authentication or network position is required beyond the ability to deliver the file (e.g., via email, web upload, or other file transfer). If the user or automated system opens the crafted file with ImageMagick’s identify, convert, or other image-processing commands, the memory leak is triggered [1][2].
Impact
Successful exploitation can lead to a denial-of-service condition due to memory exhaustion. Additionally, Ubuntu’s security advisory notes that this flaw could be leveraged to execute arbitrary code with the privileges of the user invoking the program [1]. The exact privilege level depends on the running context.
Mitigation
The fix was implemented in ImageMagick commit a33f7498f9052b50e8fe8c8422a11ba84474cb42 [3], which changes the error handling in ReadDCMImage to use ThrowDCMException instead of ThrowReaderException, preventing the leak. The vulnerability is addressed in Ubuntu via USN-3681-1, with updated packages released for Ubuntu 18.04 LTS (bionic) and other supported releases [1]. Users should update their ImageMagick installation to the latest patched version. No workaround is provided in the available references.
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
18cpe:2.3:a:imagemagick:imagemagick:7.0.6-1:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:imagemagick:imagemagick:7.0.6-1:*:*:*:*:*:*:*
- (no CPE)range: = 7.0.6-1
- osv-coords16 versionspkg:rpm/suse/GraphicsMagick&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/GraphicsMagick&distro=SUSE%20Studio%20Onsite%201.3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20Raspberry%20Pi%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP3pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP2pkg:rpm/suse/ImageMagick&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2012%20SP3
< 1.2.5-4.78.28.2+ 15 more
- (no CPE)range: < 1.2.5-4.78.28.2
- (no CPE)range: < 1.2.5-4.78.28.2
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.4.3.6-7.78.14.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.4.3.6-7.78.14.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.4.3.6-7.78.14.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.8.8.1-71.17.1
- (no CPE)range: < 6.8.8.1-71.17.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/ImageMagick/ImageMagick/commit/a33f7498f9052b50e8fe8c8422a11ba84474cb42nvdPatchVendor Advisory
- github.com/ImageMagick/ImageMagick/issues/551nvdIssue TrackingPatchVendor Advisory
- www.securityfocus.com/bid/100162nvdThird Party AdvisoryVDB Entry
- usn.ubuntu.com/3681-1/nvdThird Party Advisory
News mentions
0No linked articles in our index yet.