CVE-2017-14172
Description
A missing EOF check in ImageMagick's ReadPSImage() allows a crafted PostScript file to cause a denial of service via excessive CPU and memory consumption.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A missing EOF check in ImageMagick's ReadPSImage() allows a crafted PostScript file to cause a denial of service via excessive CPU and memory consumption.
Vulnerability
In ImageMagick 7.0.7-0 Q16, the ReadPSImage() function in coders/ps.c lacks an end-of-file (EOF) check inside a loop that reads Photoshop profile data. When a crafted PostScript file claims a large extent field in its header but does not contain sufficient backing data, the loop at line 664 iterates over the declared length without verifying that the blob actually holds that many bytes. This flaw is similar to issue #712 [3]. The vulnerable code path is reachable when any user or automated system processes a malicious PS file with ImageMagick [2][3].
Exploitation
An attacker needs only to craft a PostScript file with an inflated extent value and minimal actual data. No authentication or special network position is required; the victim must simply open the file with an ImageMagick tool such as convert. The PoC file x_ps_poc.ps triggers the vulnerability by causing the loop at line 664 to run for a very large number of iterations, consuming 100% CPU and up to 8 GB of RAM for approximately 30 minutes [3].
Impact
Successful exploitation results in a denial of service (DoS) due to extreme CPU and memory consumption. The process may become unresponsive or be terminated by the system. No code execution or data disclosure is associated with this specific CVE [3].
Mitigation
The issue was fixed in commit bdbbb13f1fe9b7e2465502c500561720f7456aac [2]. Ubuntu released updated packages in USN-3681-1 [1], and Gentoo recommends upgrading to >=media-gfx/imagemagick-6.9.9.20 [4]. No workaround is available; users should apply the latest patches for their distribution.
- USN-3681-1: ImageMagick vulnerabilities | Ubuntu security notices | Ubuntu
- https://github.com/ImageMagick/ImageMagick/issues/715 · ImageMagick/ImageMagick@bdbbb13
- CVE-2017-14172: denial of service (DoS) issue in ReadPSImage():664 in coders/ps.c
- Multiple vulnerabilities (GLSA 201711-07) — Gentoo security
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
22cpe: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:8.0:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- osv-coords14 versionspkg: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
< 6.8.8.1-71.17.1+ 13 more
- (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
6- github.com/ImageMagick/ImageMagick/commit/bdbbb13f1fe9b7e2465502c500561720f7456aacnvdPatchVendor Advisory
- github.com/ImageMagick/ImageMagick/issues/715nvdExploitIssue TrackingPatchThird 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.