CVE-2017-12669
Description
Memory leak in ImageMagick 7.0.6-2 WriteCALSImage function can exhaust memory when processing specially crafted images.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Memory leak in ImageMagick 7.0.6-2 WriteCALSImage function can exhaust memory when processing specially crafted images.
Vulnerability
ImageMagick version 7.0.6-2 contains a memory leak in the WriteCALSImage function in coders/cals.c. When converting an image to the CALS format, if certain error conditions occur (e.g., failure to clone the image or allocate memory), the write_info structure is not properly freed, leading to a memory leak [1]. The issue is triggered during the convert command when processing a crafted input file.
Exploitation
An attacker can exploit this vulnerability by providing a specially crafted image file that, when processed by ImageMagick's convert command to CALS format, triggers an error path in WriteCALSImage that does not free allocated memory [1]. The attacker does not require authentication; only the ability to deliver the malicious file to a user or service using ImageMagick.
Impact
Successful exploitation leads to a memory leak, which can gradually exhaust available memory, causing a denial of service (DoS) condition [1]. The leaked memory is 13024 bytes per image processing, as shown in the AddressSanitizer report. Repeated processing of such images can cause the application or system to run out of memory.
Mitigation
The fix was implemented in commit 73b6c35 [2] by adding DestroyImageInfo(write_info) calls before returning on error paths in WriteCALSImage. Users should update to a patched version of ImageMagick. If immediate update is not possible, avoid processing untrusted images with the CALS format until the patch is applied.
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.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
2- github.com/ImageMagick/ImageMagick/commit/73b6c35cede48ccb2e29dbe62c2d77488e5e70b7nvdPatchVendor Advisory
- github.com/ImageMagick/ImageMagick/issues/571nvdIssue TrackingPatchVendor Advisory
News mentions
0No linked articles in our index yet.