Emacs -- Shell injection vulnerability
· CVE-2024-53920 · VuXML entry
Problem Description: An Emacs 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.
Affected versions
- emacs, emacs-canna, emacs-nox, emacs-wayland < 31.1_2,3
- emacs-devel, emacs-devel-nox < 32.0.50.20260915,3
By system
2 still vulnerable, 2 fixed. Where VuXML applies (FreeBSD, DragonFly, FreeBSD's derivatives) a port is vulnerable while its version is in a range; pkgsrc says itself whether it lists a CVE of this advisory; OpenBSD and MidnightBSD keep no list this site reads, so their row is only an estimate: FreeBSD's ranges applied to upstream's version.
| System | Port | Version | State | Fixed |
|---|---|---|---|---|
| DragonFly | editors/emacs | 30.1_2,3 | vulnerable since 2025-02-24 | |
| OpenBSD | editors/emacs | 31.1-gtk3 | out of range, by version | |
| NetBSD | editors/emacs | 30.2 | not listed | |
| MidnightBSD | editors/emacs | 31.1_5,3 | out of range, by version | |
| FreeBSD | editors/emacs | 31.1_3,3 | fixed | (547 days after) |
| DragonFly | editors/emacs-devel | 31.0.50.20250315_1,3 | vulnerable since 2025-02-24 | |
| MidnightBSD | editors/emacs-devel | 31.0.50.20250515_4,3 | in range, by version | |
| FreeBSD | editors/emacs-devel | 32.0.50.20261019,3 | fixed | (568 days after) |