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.
https://support.apple.com/kb/HT205031
http://www.securityfocus.com/bid/36381
http://openwall.com/lists/oss-security/2009/08/10/2
http://openwall.com/lists/oss-security/2009/08/09/1
http://lists.apple.com/archives/security-announce/2015/Aug/msg00001.html