CVE-2024-53920
CVE-2024-53920 is a high-severity vulnerability in Gnu Emacs with a CVSS 3.x base score of 7.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-94.
Key facts
- Severity: High (CVSS 3.x base score 7.8)
- EPSS exploit prediction: 1% (41st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-52189
- Weakness: CWE-94
- Affected product: Gnu Emacs
- Published:
- Last modified:
Description
In elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke elisp-completion-at-point (for code completion) on untrusted Emacs Lisp source code can trigger unsafe Lisp macro expansion that allows attackers to execute arbitrary code. (This unsafe expansion also occurs if a user chooses to enable on-the-fly diagnosis that byte compiles untrusted Emacs Lisp source code.)
Frequently asked questions
- What is CVE-2024-53920?
- In elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke elisp-completion-at-point (for code completion) on untrusted Emacs Lisp source code can trigger unsafe Lisp macro expansion that allows attackers to execute arbitrary code. (This unsafe expansion also occurs if a user chooses to enable on-the-fly diagnosis that byte compiles untrusted Emacs Lisp source code.)
- How severe is CVE-2024-53920?
- CVE-2024-53920 has a CVSS 3.x base score of 7.8, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2024-53920 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (41st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-53920?
- CVE-2024-53920 affects Gnu Emacs. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-53920?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2024-53920 have an EU (EUVD) identifier?
- Yes. CVE-2024-53920 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-52189.
- When was CVE-2024-53920 published?
- CVE-2024-53920 was published on 2024-11-27 and last updated on 2026-06-17.
References
- https://eshelyaron.com/posts/2024-11-27-emacs-aritrary-code-execution-and-how-to-avoid-it.html
- https://git.savannah.gnu.org/cgit/emacs.git/tag/?h=emacs-30.0.92
- https://git.savannah.gnu.org/cgit/emacs.git/tree/ChangeLog.4
- https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-30.1
- https://news.ycombinator.com/item?id=42256409
- https://yhetil.org/emacs/CAFXAjY5f4YfHAtZur1RAqH34UbYU56_t6t2Er0YEh1Sb7-W=hg@mail.gmail.com/
- https://lists.debian.org/debian-lts-announce/2025/02/msg00033.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-30202 — High (CVSS 7.8): In Emacs before 29.3, arbitrary Lisp code is evaluated as part of turning on Org mode. This affects Org Mode before…
All CVEs affecting Gnu Emacs →
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-57624 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.46 versions.
- CVE-2026-10134 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 allows an attacker to read every secret available to the Langflow process, read…
- CVE-2026-53576 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter…
- CVE-2026-10561 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 has an vulnerability due to an improper isolation of Python execution combined…
- CVE-2026-25470 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in ACPT ACPT (Pro) - Custom Post Types Plugin…
- CVE-2026-48836 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Easy Invoice <= 2.1.19 versions.