CVE-2024-53920
Executive Summary
In GNU Emacs (pre‑30.1), invoking elisp-completion-at-point or enabling on‑the‑fly diagnosis on untrusted Emacs Lisp source triggers unsafe macro expansion, allowing attackers to execute arbitrary code. The flaw exists in elisp-mode.el and can be exploited by supplying crafted Lisp code that expands during completion or byte‑compilation.
Authoritative CVE Metadata
- CVSS Base Score: 7.8 (HIGH)
- Last Modified: 20-08-26
Original 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.)