contrib/pdfmark/pdfroff.sh in GNU troff (aka groff) before 1.21 allows local users to overwrite arbitrary files via a symlink attack on a pdf#####.tmp temporary file.
https://support.apple.com/kb/HT205031
http://www.securityfocus.com/bid/36381
http://www.mandriva.com/security/advisories?name=MDVSA-2013:086
http://www.mandriva.com/security/advisories?name=MDVSA-2013:085
http://secunia.com/advisories/44999
http://openwall.com/lists/oss-security/2009/08/14/5
http://openwall.com/lists/oss-security/2009/08/14/4
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
http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/groff/groff-1.20.1-owl-tmp.diff