The load_tile function in the XCF coder in coders/xcf.c in (1) ImageMagick 6.2.8-0 and (2) GraphicsMagick (aka gm) 1.1.7 allows user-assisted remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via a crafted .xcf file that triggers an out-of-bounds heap write, possibly related to the ScaleCharToQuantum function.
bugs.debian.org/cgi-bin/bugreport.cgi?bug=414370
lists.opensuse.org/opensuse-security-announce/2008-07/msg00001.html
osvdb.org/43212
secunia.com/advisories/29786
secunia.com/advisories/30967
secunia.com/advisories/32945
secunia.com/advisories/36260
www.debian.org/security/2009/dsa-1858
www.mandriva.com/security/advisories?name=MDVSA-2008:099
www.redhat.com/support/errata/RHSA-2008-0145.html
www.securityfocus.com/bid/28821
www.securitytracker.com/id?1019880
www.ubuntu.com/usn/USN-681-1
bugzilla.redhat.com/show_bug.cgi?id=286411
exchange.xforce.ibmcloud.com/vulnerabilities/41194
oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10843