CVE-2017-14175
Description
ImageMagick 7.0.6-1 Q16 has a denial of service vulnerability in ReadXBMImage() due to missing EOF check, causing high CPU consumption.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
ImageMagick 7.0.6-1 Q16 has a denial of service vulnerability in ReadXBMImage() due to missing EOF check, causing high CPU consumption.
Vulnerability
In coders/xbm.c of ImageMagick 7.0.6-1 Q16, the ReadXBMImage() function lacks an End of File (EOF) check inside a loop over image rows. When a crafted XBM file claims large rows and columns fields in its header but does not contain sufficient backing data, the loop at line 345 consumes huge CPU resources. The affected code is specifically in the XBMInteger() function and the loop that parses image data. Versions prior to the commit d9a8234 are vulnerable. [1][2][3]
Exploitation
An attacker can exploit this vulnerability by providing a specially crafted XBM image file to a user or automated system that uses ImageMagick (e.g., via the convert command). The crafted image requires no special authentication or network position; the victim simply opens or processes the image. The attacker must ensure the XBM header specifies large dimensions (rows and columns) while the data stream ends prematurely. When the application calls ReadXBMImage(), it enters the row loop and continuously reads from the blob without checking for EOF, leading to a hang that consumes 100% CPU and significant memory (up to 4 GB). [1][2][3]
Impact
Successful exploitation causes a denial of service (DoS) condition. The consuming process uses 100% CPU and up to 4 GB of memory, potentially rendering the system unresponsive. No code execution or data disclosure is indicated from the available references. The impact is limited to availability. [1][3]
Mitigation
A fix was committed to the ImageMagick repository in commit d9a8234 (2017-09-07), which modifies XBMInteger() to return -1 on EOF instead of 0, and updates the loop to check for this. Ubuntu published a security update (USN-3681-1) on 2018-06-18 for versions prior to 8:6.9.7.4+dfsg-16ubuntu6.7 (18.04 LTS) and similar for other releases. Gentoo issued GLSA 201711-07, recommending upgrade to >=media-gfx/imagemagick-6.9.9.20. Users should update to the latest patched version. There is no known workaround. [1][2][4]
- USN-3681-1: ImageMagick vulnerabilities | Ubuntu security notices | Ubuntu
- https://github.com/ImageMagick/ImageMagick/issues/712 · ImageMagick/ImageMagick@d9a8234
- CVE-2017-14175: denial of service (DoS) issue in ReadXBMImage():345 in coders/xbm.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.6-1:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:imagemagick:imagemagick:7.0.6-1:*:*:*:*:*:*:*
- (no CPE)range: = 7.0.6-1 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/d9a8234d211da30baf9526fbebe9a8438ea7e11cnvdPatchVendor Advisory
- github.com/ImageMagick/ImageMagick/issues/712nvdExploitIssue 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.