Heap-based buffer overflow in the SGI parser in ImageMagick before 6.0 allows remote attackers to execute arbitrary code via a crafted SGI image file.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9736
http://www.novell.com/linux/security/advisories/2005_17_imagemagick.html
http://www.debian.org/security/2005/dsa-702