Heap-based buffer overflow in the ReadSFWImage function in coders/sfw.c in ImageMagick 7.0.6-8 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact 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/