CVE-2017-12641
Description
ImageMagick 7.0.6-1 has a memory leak in ReadOneJNGImage when processing crafted JNG files, leading to potential denial of service.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
ImageMagick 7.0.6-1 has a memory leak in ReadOneJNGImage when processing crafted JNG files, leading to potential denial of service.
Vulnerability
ImageMagick 7.0.6-1 contains a memory leak vulnerability in the ReadOneJNGImage function within coders/png.c [1]. The leak occurs when processing specially crafted JNG (JPEG Network Graphics) files, specifically when the chunk length exceeds PNG_UINT_31_MAX or when count is zero, causing allocated memory for color_image and color_image_info to not be freed before throwing a CorruptImageError exception [2].
Exploitation
An attacker can exploit this vulnerability by providing a malicious JNG file to an application that uses ImageMagick to process images (e.g., via identify, convert, or web uploads). No authentication or special privileges are required; the attacker only needs to deliver the crafted file to the target system. The memory leak is triggered during the image reading or identification process, as demonstrated by the AddressSanitizer output [1].
Impact
Successful exploitation leads to progressive memory exhaustion, potentially causing a denial of service (DoS) condition. The vulnerability does not appear to allow arbitrary code execution or information disclosure; the primary impact is on availability [1].
Mitigation
The issue was fixed in commit c9aa9f80828594eacbe3affe16c43d623562e5d8 [2]. Users should upgrade to a version of ImageMagick that includes this patch (e.g., 7.0.6-2 or later). No workaround is documented; the only mitigation is to apply the update or avoid processing untrusted JNG files.
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.33.1+ 15 more
- (no CPE)range: < 1.2.5-4.78.33.1
- (no CPE)range: < 1.2.5-4.78.33.1
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.4.3.6-7.78.29.2
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.4.3.6-7.78.29.2
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.4.3.6-7.78.29.2
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.8.8.1-71.33.1
- (no CPE)range: < 6.8.8.1-71.33.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- github.com/ImageMagick/ImageMagick/commit/c9aa9f80828594eacbe3affe16c43d623562e5d8nvdPatchVendor Advisory
- github.com/ImageMagick/ImageMagick/issues/550nvdIssue TrackingPatchThird Party Advisory
News mentions
0No linked articles in our index yet.