The imagemagick libmagick library 5.5 and earlier creates temporary files insecurely, which allows local users to create or overwrite arbitrary files.
https://euvd.enisa.europa.eu/vulnerability/EUVD-2003-0449
http://www.redhat.com/support/errata/RHSA-2004-494.html