The ReadSGIImage function in sgi.c in ImageMagick 7.0.5-4 allows remote attackers to consume an amount of available memory via a crafted file. https://nvd.nist.gov/vuln/detail/CVE-2017-7941