Heap-based buffer overflow in the ReadPNMImage function in pnm.c for ImageMagick 6.2.1 and earlier allows remote attackers to cause a denial of service (application crash) via a PNM file with a small colors value.
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A711
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10003
https://euvd.enisa.europa.eu/vulnerability/EUVD-2005-1278
http://www.securityfocus.com/bid/13351
http://www.redhat.com/support/errata/RHSA-2005-413.html
http://www.overflow.pl/adv/imheapoverflow.txt
http://www.mandriva.com/security/advisories?name=MDKSA-2005:107
http://www.imagemagick.org/script/changelog.php