contrib/pdfmark/pdfroff.sh in GNU troff (aka groff) before 1.21 launches the Ghostscript program without the -dSAFER option, which allows remote attackers to create, overwrite, rename, or delete arbitrary files via a crafted document.
ftp://ftp.gnu.org/gnu/groff/groff-1.20.1-1.21.diff.gz
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=538338
http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html
http://openwall.com/lists/oss-security/2009/08/09/1