CVE-2007-5795
Summary
| CVE | CVE-2007-5795 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2007-11-02 22:46:00 UTC |
| Updated | 2026-04-23 00:35:47 UTC |
| 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. |
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
LocalAccess Complexity
MediumAuthentication
NoneConfidentiality
NoneIntegrity
CompleteAvailability
CompleteAV:L/AC:M/Au:N/C:N/I:C/A:C
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Debian | Debian Linux | All | All | All | All |
| Application | Gnu | Emacs | All | All | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| #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
| Organization | Published | Contributor | Statement |
|---|---|---|---|
| Red Hat | 2007-11-09 | Mark J Cox | Not vulnerable. This issue did not affect versions of Emacs as shipped with Red Hat Enterprise Linux 2.1, 3, 4, or 5. |
There are currently no legacy QID mappings associated with this CVE.