VYPR
High severity8.8NVD Advisory· Published Aug 7, 2017· Updated May 13, 2026

CVE-2017-12669

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

16

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

2

News mentions

0

No linked articles in our index yet.