In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.
https://www.debian.org/security/2020/dsa-4712
https://usn.ubuntu.com/4034-1/
https://github.com/ImageMagick/ImageMagick/issues/1454
https://github.com/ImageMagick/ImageMagick/commit/306c1f0fa5754ca78efd16ab752f0e981d4f6b82
http://www.securityfocus.com/bid/106847
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00006.html
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00034.html
http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/11ad3aeb8ab1