Vulnerability · Published Jun 23, 2024 · Assigned by mitre
CVE-2024-39331
Critical 9.8
In plain English
A critical-severity code injection in the emacs package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 71% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.3%top 29.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
In Emacs before 29.4, org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it specifies an unsafe function, such as shell-command-to-string. This affects Org Mode before 9.7.5.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | emacs | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux:9 | emacs | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| AlmaLinux:8 | emacs-common | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux:9 | emacs-common | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| AlmaLinux:8 | emacs-filesystem | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux:9 | emacs-filesystem | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| AlmaLinux:8 | emacs-lucid | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux:9 | emacs-lucid | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| AlmaLinux:8 | emacs-nox | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux:9 | emacs-nox | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| AlmaLinux:8 | emacs-terminal | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| Debian:12 | emacs | 1:28.2+1-15+deb12u3 | DEBIAN-CVE-2024-39331 |
| Debian:12 | emacs | 1:28.2+1-15+deb12u3 | DSA-5719-1 |
| Debian:13 | emacs | 1:29.4+1-1 | DEBIAN-CVE-2024-39331 |
| Debian:14 | emacs | 1:29.4+1-1 | DEBIAN-CVE-2024-39331 |
| Debian:12 | org-mode | no fix listed | DEBIAN-CVE-2024-39331 |
| Debian:13 | org-mode | 9.7.5+dfsg-1 | DEBIAN-CVE-2024-39331 |
| Debian:14 | org-mode | 9.7.5+dfsg-1 | DEBIAN-CVE-2024-39331 |
| Rocky Linux:8 | emacs | 1:26.1-12.el8_10 | RLSA-2024:6987 |
| Ubuntu:22.04:LTS | emacs | 1:27.1+1-3ubuntu5.2 | USN-7027-1 |
| Ubuntu:22.04:LTS | emacs | 1:27.1+1-3ubuntu5.2 | UBUNTU-CVE-2024-39331 |
| Ubuntu:22.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:24.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:25.10 | xemacs21 | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:26.04:LTS | xemacs21 | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:26.10 | xemacs21 | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:22.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:24.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:25.10 | xemacs21-packages | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:26.04:LTS | xemacs21-packages | no fix listed | UBUNTU-CVE-2024-39331 |
| Ubuntu:26.10 | xemacs21-packages | no fix listed | UBUNTU-CVE-2024-39331 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29
- https://list.orgmode.org/87sex5gdqc.fsf%40localhost/
- https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html
- https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8
- https://www.openwall.com/lists/oss-security/2024/06/23/1
- https://www.openwall.com/lists/oss-security/2024/06/23/2
- https://news.ycombinator.com/item?id=40768225
- [debian-lts-announce] 20240629 [SECURITY] [DLA 3848-1] org-mode security update mailing-list
- [debian-lts-announce] 20240629 [SECURITY] [DLA 3849-1] org-mode security update mailing-list