Vulnerabilities · 2007 · Gnu
CVE-2007-5795
Gnu Emacs vulnerability
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.
Affected products
Emacs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gnu Emacs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008
- bugs.gentoo.org/show_bug.cgi?id=197958
- cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29
- docs.info.apple.com/article.html?artnum=307562
- lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
- osvdb.org/42060
- secunia.com/advisories/27508
- secunia.com/advisories/27627
- nvd.nist.gov/vuln/detail/CVE-2007-5795
- cve.org/CVERecord?id=CVE-2007-5795
More vulnerabilities in Gnu products
CVE-2026-24061CVE-2026-0915CVE-2026-0861CVE-2025-66866CVE-2025-66865CVE-2025-66864CVE-2025-66863CVE-2025-66862All 1,147
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.