pstotext contains a vulnerability which can potentially result in the execution of arbitrary code.
|Package||app-text/pstotext on all architectures|
|Affected versions||< 1.8g-r1|
|Unaffected versions||>= 1.8g-r1|
pstotext is a program that works with GhostScript to extract plain text from PostScript and PDF files.
Max Vozeler reported that pstotext calls the GhostScript interpreter on untrusted PostScript files without specifying the -dSAFER option.
An attacker could craft a malicious PostScript file and entice a user to run pstotext on it, resulting in the execution of arbitrary commands with the permissions of the user running pstotext.
There is no known workaround at this time.
All pstotext users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose ">=app-text/pstotext-1.8g-r1"
July 31, 2005
August 11, 2005: 02