CVE-2007-5795

Summary

CVECVE-2007-5795
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2007-11-02 22:46:00 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionThe 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.

Risk And Classification

Primary CVSS: v2.0 6.3 from [email protected]

AV:L/AC:M/Au:N/C:N/I:C/A:C

Problem Types: NVD-CWE-Other | n/a

CVSS v2.0 Breakdown

Access Vector
Local
Access Complexity
Medium
Authentication
None
Confidentiality
None
Integrity
Complete
Availability
Complete

AV:L/AC:M/Au:N/C:N/I:C/A:C

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux All All All All
Application Gnu Emacs All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
#449008 - emacs22-common: enable-local-variables :safe mode acts like :all - Debian Bug report logs af854a3a-2127-422b-91ae-364da2661108 bugs.debian.org
Support / Security / Advisories / / MDVSA-2008:034 | Mandriva af854a3a-2127-422b-91ae-364da2661108 www.mandriva.com
IBM X-Force Exchange af854a3a-2127-422b-91ae-364da2661108 exchange.xforce.ibmcloud.com
GNU Emacs Local Variable Processing Vulnerability - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
Mac OS X Security Update Fixes Multiple Vulnerabilities - Secunia Advisories - Vulnerability Intelligence - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com
About Security Update 2008-002 af854a3a-2127-422b-91ae-364da2661108 docs.info.apple.com
Ubuntu update for emacs - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
[emacs] Diff of /emacs/lisp/files.el af854a3a-2127-422b-91ae-364da2661108 cvs.savannah.gnu.org
GNU Emacs Local Variable Handling Code Execution Vulnerability af854a3a-2127-422b-91ae-364da2661108 www.securityfocus.com
osvdb.org/42060 af854a3a-2127-422b-91ae-364da2661108 osvdb.org
Gentoo Linux Documentation -- GNU Emacs: Multiple vulnerabilities af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org
Gentoo Bug 197958 - app-editors/emacs hack-local-variables Security bypass (CVE-2007-5795) af854a3a-2127-422b-91ae-364da2661108 bugs.gentoo.org
APPLE-SA-2008-03-18 Security Update 2008-002 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com
USN-541-1: Emacs vulnerability | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com
Webmail - OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com
Fedora update for emacs - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
[SECURITY] Fedora 7 Update: emacs-22.1-5.fc7 af854a3a-2127-422b-91ae-364da2661108 www.redhat.com
Gentoo update for emacs - Advisories - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

OrganizationPublishedContributorStatement
Red Hat2007-11-09Mark J CoxNot vulnerable. This issue did not affect versions of Emacs as shipped with Red Hat Enterprise Linux 2.1, 3, 4, or 5.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report