pstotext before 1.8g does not properly use the "-dSAFER" option when calling Ghostscript to extract plain text from PostScript and PDF files, which allows remote attackers to execute arbitrary commands via a malicious PostScript file.
https://exchange.xforce.ibmcloud.com/vulnerabilities/21498
http://www.securityfocus.com/bid/14378
http://www.gentoo.org/security/en/glsa/glsa-200507-29.xml
http://www.debian.org/security/2005/dsa-792
http://secunia.com/advisories/16624