{"api_version":"1","generated_at":"2026-07-23T08:25:28+00:00","cve":"CVE-2007-5795","urls":{"html":"https://cve.report/CVE-2007-5795","api":"https://cve.report/api/cve/CVE-2007-5795.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2007-5795","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2007-5795"},"summary":{"title":"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.","state":"PUBLISHED","assigner":"redhat","published_at":"2007-11-02 22:46:00","updated_at":"2026-04-23 00:35:47"},"problem_types":["NVD-CWE-Other","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6.3","severity":"","vector":"AV:L/AC:M/Au:N/C:N/I:C/A:C","data":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:N/I:C/A:C","baseScore":6.3,"accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008","name":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"#449008 - emacs22-common: enable-local-variables :safe mode acts like :all - Debian Bug report logs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:034","name":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:034","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Support / Security / Advisories /  / MDVSA-2008:034 | Mandriva","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/38263","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/38263","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/27508","name":"http://secunia.com/advisories/27508","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"GNU Emacs Local Variable Processing Vulnerability - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/29420","name":"http://secunia.com/advisories/29420","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Mac OS X Security Update Fixes Multiple Vulnerabilities - Secunia Advisories - Vulnerability Intelligence - Secunia.com","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://docs.info.apple.com/article.html?artnum=307562","name":"http://docs.info.apple.com/article.html?artnum=307562","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"About Security Update 2008-002","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://secunia.com/advisories/27627","name":"http://secunia.com/advisories/27627","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Ubuntu update for emacs - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29","name":"http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[emacs] Diff of /emacs/lisp/files.el","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/26327","name":"http://www.securityfocus.com/bid/26327","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"GNU Emacs Local Variable Handling Code Execution Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://osvdb.org/42060","name":"http://osvdb.org/42060","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"-1","archivestatus":"0"},{"url":"http://security.gentoo.org/glsa/glsa-200712-03.xml","name":"http://security.gentoo.org/glsa/glsa-200712-03.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo Linux Documentation\n--\n  GNU Emacs: Multiple vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://bugs.gentoo.org/show_bug.cgi?id=197958","name":"http://bugs.gentoo.org/show_bug.cgi?id=197958","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo Bug 197958 - app-editors/emacs hack-local-variables Security bypass (CVE-2007-5795)","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html","name":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"APPLE-SA-2008-03-18 Security Update 2008-002","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.ubuntu.com/usn/usn-541-1","name":"http://www.ubuntu.com/usn/usn-541-1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"USN-541-1: Emacs vulnerability | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.vupen.com/english/advisories/2007/3715","name":"http://www.vupen.com/english/advisories/2007/3715","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Webmail - OVH","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/27728","name":"http://secunia.com/advisories/27728","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Fedora update for emacs - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html","name":"https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] Fedora 7 Update: emacs-22.1-5.fc7","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://secunia.com/advisories/27984","name":"http://secunia.com/advisories/27984","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo update for emacs - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.vupen.com/english/advisories/2008/0924/references","name":"http://www.vupen.com/english/advisories/2008/0924/references","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Webmail : Solution de messagerie professionnelle - OVHcloud- OVH","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2007-5795","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2007-5795","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2007","cve_id":"5795","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2007","cve_id":"5795","vulnerable":"1","versionEndIncluding":"22.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gnu","cpe5":"emacs","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[{"cvename":"CVE-2007-5795","organization":"Red Hat","lastmodified":"2007-11-09","contributor":"Mark J Cox","statementText":"Not vulnerable. This issue did not affect versions of Emacs as shipped with Red Hat Enterprise Linux 2.1, 3, 4, or 5.","cve_year":"2007","cve_id":"5795","crc32":"12e23318"}],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T15:46:59.515Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"FEDORA-2007-3056","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"],"url":"https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008"},{"name":"27984","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27984"},{"name":"emacs-hacklocalvariables-security-bypass(38263)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/38263"},{"name":"27728","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27728"},{"name":"ADV-2008-0924","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"],"url":"http://www.vupen.com/english/advisories/2008/0924/references"},{"name":"ADV-2007-3715","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"],"url":"http://www.vupen.com/english/advisories/2007/3715"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29"},{"name":"42060","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"],"url":"http://osvdb.org/42060"},{"name":"USN-541-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"],"url":"http://www.ubuntu.com/usn/usn-541-1"},{"name":"29420","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/29420"},{"name":"APPLE-SA-2008-03-18","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"],"url":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html"},{"name":"MDVSA-2008:034","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"],"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:034"},{"name":"26327","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/26327"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://bugs.gentoo.org/show_bug.cgi?id=197958"},{"name":"GLSA-200712-03","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://security.gentoo.org/glsa/glsa-200712-03.xml"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://docs.info.apple.com/article.html?artnum=307562"},{"name":"27508","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27508"},{"name":"27627","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/27627"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2007-11-02T00:00:00.000Z","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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-07-28T12:57:01.000Z","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","shortName":"redhat"},"references":[{"name":"FEDORA-2007-3056","tags":["vendor-advisory","x_refsource_FEDORA"],"url":"https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html"},{"tags":["x_refsource_CONFIRM"],"url":"http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008"},{"name":"27984","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27984"},{"name":"emacs-hacklocalvariables-security-bypass(38263)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/38263"},{"name":"27728","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27728"},{"name":"ADV-2008-0924","tags":["vdb-entry","x_refsource_VUPEN"],"url":"http://www.vupen.com/english/advisories/2008/0924/references"},{"name":"ADV-2007-3715","tags":["vdb-entry","x_refsource_VUPEN"],"url":"http://www.vupen.com/english/advisories/2007/3715"},{"tags":["x_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","tags":["vdb-entry","x_refsource_OSVDB"],"url":"http://osvdb.org/42060"},{"name":"USN-541-1","tags":["vendor-advisory","x_refsource_UBUNTU"],"url":"http://www.ubuntu.com/usn/usn-541-1"},{"name":"29420","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/29420"},{"name":"APPLE-SA-2008-03-18","tags":["vendor-advisory","x_refsource_APPLE"],"url":"http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html"},{"name":"MDVSA-2008:034","tags":["vendor-advisory","x_refsource_MANDRIVA"],"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2008:034"},{"name":"26327","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/26327"},{"tags":["x_refsource_CONFIRM"],"url":"http://bugs.gentoo.org/show_bug.cgi?id=197958"},{"name":"GLSA-200712-03","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://security.gentoo.org/glsa/glsa-200712-03.xml"},{"tags":["x_refsource_CONFIRM"],"url":"http://docs.info.apple.com/article.html?artnum=307562"},{"name":"27508","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27508"},{"name":"27627","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/27627"}],"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"}]}}}},"cveMetadata":{"assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","assignerShortName":"redhat","cveId":"CVE-2007-5795","datePublished":"2007-11-02T22:00:00.000Z","dateReserved":"2007-11-02T00:00:00.000Z","dateUpdated":"2024-08-07T15:46:59.515Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2007-11-02 22:46:00","lastModifiedDate":"2026-04-23 00:35:47","problem_types":["NVD-CWE-Other","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:N/I:C/A:C","baseScore":6.3,"accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"MEDIUM","exploitabilityScore":3.4,"impactScore":9.2,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"operator":"AND","nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":false,"criteria":"cpe:2.3:o:debian:debian_linux:*:*:*:*:*:*:*:*","matchCriteriaId":"4C8919F1-CD33-437E-9627-69352B276BA3"}]},{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*","versionEndIncluding":"22.1","matchCriteriaId":"F4FB1FAE-4C0F-4F1E-B2D8-C56B5603937D"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*","versionEndIncluding":"22.1","matchCriteriaId":"F4FB1FAE-4C0F-4F1E-B2D8-C56B5603937D"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2007","CveId":"5795","Ordinal":"1","Title":"CVE-2007-5795","CVE":"CVE-2007-5795","Year":"2007"},"notes":[{"CveYear":"2007","CveId":"5795","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2007-5795"},{"CveYear":"2007","CveId":"5795","Ordinal":"2","NoteData":"2007-11-02","Type":"Other","Title":"Published"},{"CveYear":"2007","CveId":"5795","Ordinal":"3","NoteData":"2017-07-28","Type":"Other","Title":"Modified"}]}}}