The (1) tramp-make-temp-file and (2) tramp-make-tramp-temp-file functions in Tramp 2.1.10 extension for Emacs, and possibly earlier 2.1.x versions, allows local users to overwrite arbitrary files via a symlink attack on temporary files.
bugs.gentoo.org/show_bug.cgi?id=194713
lists.gnu.org/archive/html/emacs-devel/2007-10/msg00132.html
lists.gnu.org/archive/html/emacs-devel/2007-10/msg00158.html
osvdb.org/41752
secunia.com/advisories/27244
secunia.com/advisories/27343
www.gentoo.org/security/en/glsa/glsa-200710-22.xml
www.securityfocus.com/bid/26072