In GraphicsMagick from version 1.3.8 to 1.4 snapshot-20190403 Q8, there is a heap-based buffer overflow in the function WritePDBImage of coders/pdb.c, which allows an attacker to cause a denial of service or possibly have unspecified other impact via a crafted image file. This is related to MagickBitStreamMSBWrite in magick/bit_stream.c.
https://www.debian.org/security/2020/dsa-4640
https://usn.ubuntu.com/4207-1/
https://sourceforge.net/p/graphicsmagick/bugs/605/
https://lists.debian.org/debian-lts-announce/2019/05/msg00027.html
http://www.securityfocus.com/bid/108063
http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00001.html
http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00057.html
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00055.html
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00021.html
http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00020.html
http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/85f5bdcd246a