The IsPixelGray function in MagickCore/pixel-accessor.h in ImageMagick 7.0.3-8 allows remote attackers to cause a denial of service (out-of-bounds heap read) via a crafted image file.
https://github.com/ImageMagick/ImageMagick/commit/ce98a7acbcfca7f0a178f4b1e7b957e419e0cc99
https://bugzilla.redhat.com/show_bug.cgi?id=1398198
http://www.securityfocus.com/bid/94492
http://www.openwall.com/lists/oss-security/2016/12/02/12
http://www.openwall.com/lists/oss-security/2016/12/01/4
http://www.openwall.com/lists/oss-security/2016/11/23/1
http://www.debian.org/security/2016/dsa-3726
http://lists.opensuse.org/opensuse-updates/2016-12/msg00040.html