CVE-2017-12674
Description
A CPU exhaustion vulnerability in ImageMagick's ReadPDBImage function allows denial of service via a crafted PDB file.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A CPU exhaustion vulnerability in ImageMagick's ReadPDBImage function allows denial of service via a crafted PDB file.
Vulnerability
In ImageMagick 7.0.6-2, the ReadPDBImage function in coders/pdb.c contains a CPU exhaustion vulnerability. The function reads a comment_offset value from the input file and then attempts to skip padding bytes by reading one byte at a time in a loop (while (num_pad_bytes--) ReadBlobByte(image)). If the comment_offset is larger than the file size, the loop never terminates, causing infinite CPU consumption. [2]
Exploitation
An attacker must craft a PDB file with a comment_offset value that exceeds the actual file size. The attacker then needs to trick a user or automated system into processing this file with ImageMagick (e.g., via the convert command). No authentication or special privileges are required beyond the ability to supply the file. [2]
Impact
Successful exploitation results in denial of service due to CPU exhaustion. The ImageMagick process hangs indefinitely, consuming CPU resources. No code execution or data disclosure is indicated in the available references. [1][2]
Mitigation
The vulnerability is fixed in later versions of ImageMagick. Ubuntu users can apply the updates provided in USN-3681-1, which include patched packages for Ubuntu 18.04 LTS and other releases. Users should update to the latest ImageMagick version. No workaround is documented. [1]
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
16cpe:2.3:a:imagemagick:imagemagick:7.0.6-2:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:imagemagick:imagemagick:7.0.6-2:*:*:*:*:*:*:*
- (no CPE)range: = 7.0.6-2
- 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.42.1+ 13 more
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.4.3.6-7.78.34.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.4.3.6-7.78.34.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.4.3.6-7.78.34.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.8.8.1-71.42.1
- (no CPE)range: < 6.8.8.1-71.42.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/ImageMagick/ImageMagick/issues/604nvdIssue TrackingPatchThird Party Advisory
- lists.debian.org/debian-lts-announce/2019/05/msg00015.htmlnvd
- lists.debian.org/debian-lts-announce/2020/09/msg00007.htmlnvd
- usn.ubuntu.com/3681-1/nvd
News mentions
0No linked articles in our index yet.