CVE-2017-14174
Description
ImageMagick 7.0.7-0 Q16 suffers from a denial-of-service vulnerability in ReadPSDLayersInternal() due to missing EOF check, causing high CPU consumption when processing crafted PSD files.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
ImageMagick 7.0.7-0 Q16 suffers from a denial-of-service vulnerability in ReadPSDLayersInternal() due to missing EOF check, causing high CPU consumption when processing crafted PSD files.
Vulnerability
A denial-of-service vulnerability exists in ImageMagick version 7.0.7-0 Q16 within the ReadPSDLayersInternal() function in coders/psd.c. The issue occurs because the loop at line 1707 iterates based on a length field from the PSD file header without verifying the end-of-file (EOF) condition inside the loop. When a crafted PSD file claims a large length but contains insufficient backing data, the loop continues consuming CPU resources indefinitely [3].
Exploitation
An attacker can exploit this vulnerability by providing a specially crafted PSD image file with a manipulated length field. The attacker does not need any special network position or authentication; the attack vector is remote and user interaction is required—the victim must open or process the malicious file using ImageMagick (e.g., via the convert command). The loop iterates in 8-byte steps, reading two 4-byte values per iteration, and with no EOF check, it continues until the file descriptor error or until the system runs out of resources [3].
Impact
Successful exploitation results in a denial of service: the ImageMagick process consumes 100% CPU for an extended period (over 3.5 minutes in testing) and may become unresponsive. The issue is limited to CPU exhaustion and does not lead to code execution, privilege escalation, or data disclosure [1][3].
Mitigation
A fix was implemented in commit 04a567494786d5bb50894fc8bb8fea0cf496bea8 which replaces the vulnerable loop with a DiscardBlobBytes() call that includes an EOF check [2]. Patched versions are included in Ubuntu security update USN-3681-1 (for ImageMagick packages) and in Gentoo GLSA 201711-07 (for ImageMagick >= 6.9.9.20 and >= 7.0.7-0) [1][4]. Users should update to the latest patched version of ImageMagick. No workaround is available if the patch is not installed [4].
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
24cpe:2.3:a:imagemagick:imagemagick:7.0.7-0:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:imagemagick:imagemagick:7.0.7-0:*:*:*:*:*:*:*
- (no CPE)range: =7.0.7-0 Q16
cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*+ 3 more
- cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*
- cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- 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.20.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.4.3.6-7.78.17.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.4.3.6-7.78.17.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.4.3.6-7.78.17.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.8.8.1-71.20.1
- (no CPE)range: < 6.8.8.1-71.20.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
7- github.com/ImageMagick/ImageMagick/commit/04a567494786d5bb50894fc8bb8fea0cf496bea8nvdIssue TrackingPatchThird Party Advisory
- github.com/ImageMagick/ImageMagick/issues/714nvdExploitIssue TrackingPatchThird Party Advisory
- github.com/ImageMagick/ImageMagick/commit/f68a98a9d385838a1c73ec960a14102949940a64nvdIssue TrackingThird Party Advisory
- lists.debian.org/debian-lts-announce/2019/05/msg00015.htmlnvdThird Party Advisory
- lists.debian.org/debian-lts-announce/2020/09/msg00007.htmlnvdThird Party Advisory
- security.gentoo.org/glsa/201711-07nvdThird Party Advisory
- usn.ubuntu.com/3681-1/nvdThird Party Advisory
News mentions
0No linked articles in our index yet.