CVE-2007-5795
CVE-2007-5795 is a medium-severity vulnerability in Gnu Emacs with a CVSS 2.0 base score of 6.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low.
Key facts
- Severity: Medium (CVSS 2.0 base score 6.3)
- EPSS exploit prediction: 1% (50th percentile)
- Actively exploited: Not listed in CISA KEV
- Affected product: Gnu Emacs
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2007-5795?
- 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.
- How severe is CVE-2007-5795?
- CVE-2007-5795 has a CVSS 2.0 base score of 6.3, rated medium severity.
- Is CVE-2007-5795 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (50th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2007-5795?
- CVE-2007-5795 affects Gnu Emacs. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2007-5795?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2007-5795 published?
- CVE-2007-5795 was published on 2007-11-02 and last updated on 2026-06-16.
References
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=449008
- http://bugs.gentoo.org/show_bug.cgi?id=197958
- http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/files.el?r1=1.896.2.28&r2=1.896.2.29
- http://docs.info.apple.com/article.html?artnum=307562
- http://lists.apple.com/archives/security-announce/2008/Mar/msg00001.html
- http://osvdb.org/42060
- http://secunia.com/advisories/27508
- http://secunia.com/advisories/27627
- http://secunia.com/advisories/27728
- http://secunia.com/advisories/27984
- http://secunia.com/advisories/29420
- http://security.gentoo.org/glsa/glsa-200712-03.xml
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:034
- http://www.securityfocus.com/bid/26327
- http://www.ubuntu.com/usn/usn-541-1
- http://www.vupen.com/english/advisories/2007/3715
- http://www.vupen.com/english/advisories/2008/0924/references
- https://exchange.xforce.ibmcloud.com/vulnerabilities/38263
- https://www.redhat.com/archives/fedora-package-announce/2007-November/msg00524.html
Affected products (1)
- cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*
More vulnerabilities in Gnu Emacs
- CVE-2007-6109 — Critical (CVSS 10.0): Stack-based buffer overflow in emacs allows user-assisted attackers to cause a denial of service (application crash)…
- CVE-2024-39331 — Critical (CVSS 9.8): In Emacs before 29.4, org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it specifies an…
- CVE-2022-48337 — Critical (CVSS 9.8): GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file,…
- CVE-2012-0035 — Critical (CVSS 9.3): Untrusted search path vulnerability in EDE in CEDET before 1.0.1, as used in GNU Emacs before 23.4 and other products,…
- CVE-2017-14482 — High (CVSS 8.8): GNU Emacs before 25.3 allows remote attackers to execute arbitrary code via email with crafted "Content-Type:…
- CVE-2024-53920 — High (CVSS 7.8): In elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke elisp-completion-at-point (for code completion)…