{"id":"CVE-2007-5795","aliases":["DEBIAN-CVE-2007-5795","DTSA-79-1","EUVD-2007-5765","GHSA-qf2q-r4v7-rv34","openSUSE-SU-2024:10735-1"],"status":"published","title":"The hack-local-variables function in Emacs before 22.2, when enable-local-variables is set to ...","description":"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.","severity":{"version":"2.0","score":6.3,"vector":"AV:L/AC:M/Au:N/C:N/I:C/A:C","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.00718,"percentile":0.54089,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"published":"2007-11-02T22:00:00Z","modified":"2026-06-16T22:46:50Z","exploits":[{"source":"exploitdb","id":"EDB-30736","title":"GNU Emacs 22.1 - Local Variable Handling Code Execution","type":"remote","platform":"linux","date":"2007-11-02","verified":true,"url":"https://www.exploit-db.com/exploits/30736"}],"fixes":[{"ecosystem":"Debian:5.0","package":"emacs22","fixed_in":["22.1+1-2+lenny1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:5.0","package":"emacs22","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.1+1-2+lenny1"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"emacs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"27.2-6.2"}]}],"bundled":2}],"products":[{"vendor":"gnu","product":"emacs"}],"references":[{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://secunia.com/advisories/27984","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/38263","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://secunia.com/advisories/27728","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2008/0924/references","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/3715","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28\u0026r2=1.896.2.29","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://osvdb.org/42060","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://www.ubuntu.com/usn/usn-541-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://secunia.com/advisories/29420","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:034","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://www.securityfocus.com/bid/26327","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://bugs.gentoo.org/show_bug.cgi?id=197958","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://security.gentoo.org/glsa/glsa-200712-03.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://docs.info.apple.com/article.html?artnum=307562","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://secunia.com/advisories/27508","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/27627","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-5795"},{"url":"https://github.com/advisories/GHSA-qf2q-r4v7-rv34"},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2007-5795","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7476","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2007-5795","description":"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.","status":"published","published":"2007-11-02T22:00:00Z","modified":"2024-08-07T15:46:59.515Z","updated_at":"2026-11-02T13:32:11.910312Z"}],"euvd":[{"id":"EUVD-2007-5765","description":"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.","status":"published","published":"2007-11-02T22:00:00Z","modified":"2024-08-07T15:46:59Z","updated_at":"2026-11-03T01:16:15.661904Z"}],"ghsa":[{"id":"GHSA-qf2q-r4v7-rv34","title":"The hack-local-variables function in Emacs before 22.2, when enable-local-variables is set to ...","description":"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.","status":"published","published":"2022-05-01T18:36:45Z","modified":"2023-01-31T05:05:26Z","updated_at":"2026-11-02T14:48:50.987758Z"}],"nvd":[{"id":"CVE-2007-5795","description":"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.","status":"published","published":"2007-11-02T22:46:00Z","modified":"2026-06-16T22:46:50.37Z","cvss":[{"version":"2.0","score":6.3,"vector":"AV:L/AC:M/Au:N/C:N/I:C/A:C","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:01:22.203764Z"}],"osv":[{"id":"DTSA-79-1","title":"emacs22 - restriction bypass","status":"published","published":"2007-11-10T00:00:00Z","modified":"2026-03-09T01:01:49.507338Z","updated_at":"2026-11-02T15:46:18.716547Z"},{"id":"openSUSE-SU-2024:10735-1","title":"emacs-27.2-6.2 on GA media","description":"These are all security issues fixed in the emacs-27.2-6.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:47:45.426007Z","updated_at":"2026-11-02T16:58:34.487567Z"}]}}
