CVE-2007-5795 json
The hack-local-variables function in Emacs before 22.2, when enable-local-variables is set to :safe, does not properly search lists of unsa…
published 2007-11-02 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-5765
- cvss
- 6.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- emacs openSUSE Tumbleweed 27.2-6.2
opensuse advisories openSUSE-SU-2024:10735-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-5795 updated
emacs insufficient safe mode checks
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (EDB-30736)
- Published
Exploit prediction
0.72% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-30736 GNU Emacs 22.1 - Local Variable Handling Code Execution remote, 2007-11-02
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.3 | AV:L/AC:M/Au:N/C:N/I:C/A:C |
References
-
redhat.com
/archives/fedora-package-announce/2007-November/msg00524.html
vendor-advisory
-
ubuntu.com
/usn/usn-541-1
vendor-advisory
-
lists.apple.com
/archives/security-announce/2008/Mar/msg00001.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2008:034
vendor-advisory
-
security.gentoo.org
/glsa/glsa-200712-03.xml
vendor-advisory
- bugs.debian.org /cgi-bin/bugreport.cgi?bug=449008
-
secunia.com
/advisories/27984
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/38263
vdb-entry
-
secunia.com
/advisories/27728
third-party-advisory
-
vupen.com
/english/advisories/2008/0924/references
vdb-entry
-
vupen.com
/english/advisories/2007/3715
vdb-entry
- cvs.savannah.gnu.org /viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29
-
osvdb.org
/42060
vdb-entry
-
secunia.com
/advisories/29420
third-party-advisory
-
securityfocus.com
/bid/26327
vdb-entry
- bugs.gentoo.org /show_bug.cgi?id=197958
- docs.info.apple.com /article.html?artnum=307562
-
secunia.com
/advisories/27508
third-party-advisory
-
secunia.com
/advisories/27627
third-party-advisory
Sources
- CVE List CVE-2007-5795
- NVD CVE-2007-5795
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.