Imagemagick · Imagemagick · CVE-2018-5357
**Name of the Vulnerable Software and Affected Versions**
ImageMagick version 7.0.7-22 Q16
**Description**
The issue concerns memory leaks in the `ReadDCMImage` function located in `coders/dcm.c`. This problem can lead to potential security risks due to the inefficient handling of memory.
**Recommendations**
For ImageMagick version 7.0.7-22 Q16, consider applying a patch or fix that addresses the memory leaks in the `ReadDCMImage` function as a permanent solution. As a temporary workaround, restrict the use of the `ReadDCMImage` function until a patch is available to minimize the risk of exploitation.