The ReadWPGImage function in coders/wpg.c in ImageMagick allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted WPG file.
https://github.com/ImageMagick/ImageMagick/issues/120
https://github.com/ImageMagick/ImageMagick/commit/bef1e4f637d8f665bc133a9c6d30df08d983bc3a
https://bugzilla.redhat.com/show_bug.cgi?id=1378765
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1542114