A heap-based buffer overflow in WritePCXImage in coders/pcx.c in ImageMagick 7.0.6-8 Q16 allows remote attackers to cause a denial of service or code execution via a crafted file.
https://www.debian.org/security/2017/dsa-4040
https://www.debian.org/security/2017/dsa-4032
https://usn.ubuntu.com/3681-1/
https://security.gentoo.org/glsa/201711-07