The hack-local-variables function in Emacs before 22.2, when enable-local-variables is set to :safe, does not properly search lists of unsafe or risky variables, which might allow user-assisted attackers to bypass intended restrictions and modify critical program variables via a file containing a Local variables declaration.
https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html
https://exchange.xforce.ibmcloud.com/vulnerabilities/38263
http://www.vupen.com/english/advisories/2008/0924/references
http://www.vupen.com/english/advisories/2007/3715
http://www.ubuntu.com/usn/usn-541-1
http://www.securityfocus.com/bid/26327
http://www.mandriva.com/security/advisories?name=MDVSA-2008:034
http://security.gentoo.org/glsa/glsa-200712-03.xml
http://secunia.com/advisories/29420
http://secunia.com/advisories/27984
http://secunia.com/advisories/27728
http://secunia.com/advisories/27627
http://secunia.com/advisories/27508
http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
http://docs.info.apple.com/article.html?artnum=307562
http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29