ImageMagick versions before 6.9.13-57 and 7.x before 7.1.2-32 have a use after free vulnerability in the PDF writer component when processing CMYK images with JPEG2000 compression. This flaw can lead to memory reuse of freed memory, potentially causing the process to crash. The vulnerability has a medium severity score and does not impact confidentiality or integrity, only availability.