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.
http://www.securityfocus.com/bid/26072
http://www.gentoo.org/security/en/glsa/glsa-200710-22.xml
http://secunia.com/advisories/27343
http://secunia.com/advisories/27244
http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00158.html
http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg00132.html