{"id":"CVE-2007-5795","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2007-11-02T22:00:00.000Z","updatedAt":"2024-08-07T15:46:59.515Z","severity":null,"assigner":"redhat","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html","http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008","http://secunia.com/advisories/27984","https://exchange.xforce.ibmcloud.com/vulnerabilities/38263","http://secunia.com/advisories/27728","http://www.vupen.com/english/advisories/2008/0924/references","http://www.vupen.com/english/advisories/2007/3715","http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29","http://osvdb.org/42060","http://www.ubuntu.com/usn/usn-541-1","http://secunia.com/advisories/29420","http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html","http://www.mandriva.com/security/advisories?name=MDVSA-2008:034","http://www.securityfocus.com/bid/26327","http://bugs.gentoo.org/show_bug.cgi?id=197958","http://security.gentoo.org/glsa/glsa-200712-03.xml","http://docs.info.apple.com/article.html?artnum=307562","http://secunia.com/advisories/27508","http://secunia.com/advisories/27627"],"weaknesses":[],"ingestedAt":"2026-10-29T19:38:39.352Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2007/5xxx/CVE-2007-5795.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2007-5795","state":"PUBLISHED","datePublished":"2007-11-02T22:00:00.000Z","dateUpdated":"2024-08-07T15:46:59.515Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2007-11-02T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html","name":"FEDORA-2007-3056","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/27984","name":"27984","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/38263","name":"emacs-hacklocalvariables-security-bypass(38263)","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://secunia.com/advisories/27728","name":"27728","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.vupen.com/english/advisories/2008/0924/references","name":"ADV-2008-0924","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://www.vupen.com/english/advisories/2007/3715","name":"ADV-2007-3715","tags":["vdb-entry","x_refsource_VUPEN"]},{"url":"http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29","tags":["x_refsource_CONFIRM"]},{"url":"http://osvdb.org/42060","name":"42060","tags":["vdb-entry","x_refsource_OSVDB"]},{"url":"http://www.ubuntu.com/usn/usn-541-1","name":"USN-541-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://secunia.com/advisories/29420","name":"29420","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html","name":"APPLE-SA-2008-03-18","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:034","name":"MDVSA-2008:034","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://www.securityfocus.com/bid/26327","name":"26327","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://bugs.gentoo.org/show_bug.cgi?id=197958","tags":["x_refsource_CONFIRM"]},{"url":"http://security.gentoo.org/glsa/glsa-200712-03.xml","name":"GLSA-200712-03","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://docs.info.apple.com/article.html?artnum=307562","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/27508","name":"27508","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/27627","name":"27627","tags":["third-party-advisory","x_refsource_SECUNIA"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"redhat","dateUpdated":"2017-07-28T12:57:01.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749"},"datePublic":"2007-11-02T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"secalert@redhat.com","ID":"CVE-2007-5795","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"FEDORA-2007-3056","refsource":"FEDORA","url":"https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html"},{"name":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008","refsource":"CONFIRM","url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008"},{"name":"27984","refsource":"SECUNIA","url":"http://secunia.com/advisories/27984"},{"name":"emacs-hacklocalvariables-security-bypass(38263)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/38263"},{"name":"27728","refsource":"SECUNIA","url":"http://secunia.com/advisories/27728"},{"name":"ADV-2008-0924","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2008/0924/references"},{"name":"ADV-2007-3715","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2007/3715"},{"name":"http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29","refsource":"CONFIRM","url":"http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29"},{"name":"42060","refsource":"OSVDB","url":"http://osvdb.org/42060"},{"name":"USN-541-1","refsource":"UBUNTU","url":"http://www.ubuntu.com/usn/usn-541-1"},{"name":"29420","refsource":"SECUNIA","url":"http://secunia.com/advisories/29420"},{"name":"APPLE-SA-2008-03-18","refsource":"APPLE","url":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html"},{"name":"MDVSA-2008:034","refsource":"MANDRIVA","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:034"},{"name":"26327","refsource":"BID","url":"http://www.securityfocus.com/bid/26327"},{"name":"http://bugs.gentoo.org/show_bug.cgi?id=197958","refsource":"CONFIRM","url":"http://bugs.gentoo.org/show_bug.cgi?id=197958"},{"name":"GLSA-200712-03","refsource":"GENTOO","url":"http://security.gentoo.org/glsa/glsa-200712-03.xml"},{"name":"http://docs.info.apple.com/article.html?artnum=307562","refsource":"CONFIRM","url":"http://docs.info.apple.com/article.html?artnum=307562"},{"name":"27508","refsource":"SECUNIA","url":"http://secunia.com/advisories/27508"},{"name":"27627","refsource":"SECUNIA","url":"http://secunia.com/advisories/27627"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html","name":"FEDORA-2007-3056","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","name":"27984","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/38263","name":"emacs-hacklocalvariables-security-bypass(38263)","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://secunia.com/advisories/27728","name":"27728","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2008/0924/references","name":"ADV-2008-0924","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2007/3715","name":"ADV-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&r2=1.896.2.29","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://osvdb.org/42060","name":"42060","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://www.ubuntu.com/usn/usn-541-1","name":"USN-541-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]},{"url":"http://secunia.com/advisories/29420","name":"29420","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html","name":"APPLE-SA-2008-03-18","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:034","name":"MDVSA-2008:034","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://www.securityfocus.com/bid/26327","name":"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","name":"GLSA-200712-03","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","name":"27508","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/27627","name":"27627","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-07T15:46:59.515Z"}}]}}}