CVE-2024-39331
published critical CVSS 3.1 · 9.8emacs: org-link-expand-abbrev: Do not evaluate arbitrary unsafe Elisp code
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| gnu | — | emacs0 to < 29.4 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2608 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-663 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | emacs | Advisory build | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| Debian | bookworm | emacs | Advisory build | 1:28.2+1-15+deb12u3 | DSA-5719-1 |
| Oracle Linux | 8 | emacsaarch64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Red Hat Enterprise Linux | RHEL-8 | emacsaarch64 | Advisory build | 1:26.1-10.el8_8.6 | RHSA-2024:6203 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | emacsaarch64 | Advisory build | 24.3-25.20.1 | SUSE-SU-2024:2293-1 |
| Ubuntu | focal | emacs | Advisory build | 1:26.3+1-1ubuntu2+esm1 | USN-7027-1 |
| AlmaLinux | 9 | emacs | Advisory build | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| Debian | bullseye | emacs | Advisory build | 1:27.1+1-3.1+deb11u5 | DSA-5719-1 |
| Debian | buster | emacs | Advisory build | 1:26.1+1-3.2+deb10u6 | DLA-3849-1 |
| Oracle Linux | 8 | emacsx86_64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 9 | emacsaarch64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Oracle Linux | 9 | emacsx86_64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Red Hat Enterprise Linux | RHEL-8 | emacsaarch64 | Advisory build | 1:26.1-12.el8_10 | RHSA-2024:6987 |
| Red Hat Enterprise Linux | RHEL-8 | emacsaarch64 | Advisory build | 1:26.1-7.el8_6.5 | RHSA-2024:4971 |
| Red Hat Enterprise Linux | RHEL-8 | emacsppc64le | Advisory build | 1:26.1-10.el8_8.6 | RHSA-2024:6203 |
| Red Hat Enterprise Linux | RHEL-8 | emacsppc64le | Advisory build | 1:26.1-12.el8_10 | RHSA-2024:6987 |
| Red Hat Enterprise Linux | RHEL-8 | emacsppc64le | Advisory build | 1:26.1-7.el8_6.5 | RHSA-2024:4971 |
| Red Hat Enterprise Linux | RHEL-8 | emacss390x | Advisory build | 1:26.1-10.el8_8.6 | RHSA-2024:6203 |
| Red Hat Enterprise Linux | RHEL-8 | emacss390x | Advisory build | 1:26.1-12.el8_10 | RHSA-2024:6987 |
| Red Hat Enterprise Linux | RHEL-8 | emacss390x | Advisory build | 1:26.1-7.el8_6.5 | RHSA-2024:4971 |
| Red Hat Enterprise Linux | RHEL-8 | emacssrc | Advisory build | 1:26.1-10.el8_8.6 | RHSA-2024:6203 |
| Red Hat Enterprise Linux | RHEL-8 | emacssrc | Advisory build | 1:26.1-12.el8_10 | RHSA-2024:6987 |
| Red Hat Enterprise Linux | RHEL-8 | emacssrc | Advisory build | 1:26.1-7.el8_6.5 | RHSA-2024:4971 |
| Red Hat Enterprise Linux | RHEL-8 | emacsx86_64 | Advisory build | 1:26.1-10.el8_8.6 | RHSA-2024:6203 |
| Red Hat Enterprise Linux | RHEL-8 | emacsx86_64 | Advisory build | 1:26.1-12.el8_10 | RHSA-2024:6987 |
| Red Hat Enterprise Linux | RHEL-8 | emacsx86_64 | Advisory build | 1:26.1-7.el8_6.5 | RHSA-2024:4971 |
| Red Hat Enterprise Linux | RHEL-9 | emacsaarch64 | Advisory build | 1:27.2-10.el9_4 | RHSA-2024:6510 |
| Red Hat Enterprise Linux | RHEL-9 | emacsppc64le | Advisory build | 1:27.2-10.el9_4 | RHSA-2024:6510 |
| Red Hat Enterprise Linux | RHEL-9 | emacss390x | Advisory build | 1:27.2-10.el9_4 | RHSA-2024:6510 |
| Red Hat Enterprise Linux | RHEL-9 | emacssrc | Advisory build | 1:27.2-10.el9_4 | RHSA-2024:6510 |
| Red Hat Enterprise Linux | RHEL-9 | emacsx86_64 | Advisory build | 1:27.2-10.el9_4 | RHSA-2024:6510 |
| SUSE / openSUSE | SLE-12-SP5 | emacsppc64le | Advisory build | 24.3-25.20.1 | SUSE-SU-2024:2293-1 |
| SUSE / openSUSE | SLE-12-SP5 | emacss390x | Advisory build | 24.3-25.20.1 | SUSE-SU-2024:2293-1 |
| SUSE / openSUSE | SLE-12-SP5 | emacsx86_64 | Advisory build | 24.3-25.20.1 | SUSE-SU-2024:2293-1 |
| SUSE / openSUSE | SLE-15-SP2 | emacsaarch64 | Advisory build | 25.3-150000.3.22.1 | SUSE-SU-2024:2297-1 |
| SUSE / openSUSE | SLE-15-SP2 | emacsppc64le | Advisory build | 25.3-150000.3.22.1 | SUSE-SU-2024:2297-1 |
| SUSE / openSUSE | SLE-15-SP2 | emacss390x | Advisory build | 25.3-150000.3.22.1 | SUSE-SU-2024:2297-1 |
| SUSE / openSUSE | SLE-15-SP2 | emacsx86_64 | Advisory build | 25.3-150000.3.22.1 | SUSE-SU-2024:2297-1 |
| SUSE / openSUSE | SLE-15-SP3 | emacsaarch64 | Advisory build | 25.3-150000.3.22.1 | SUSE-SU-2024:2297-1 |
| SUSE / openSUSE | SLE-15-SP3 | emacsppc64le | Advisory build | 25.3-150000.3.22.1 | SUSE-SU-2024:2297-1 |
| SUSE / openSUSE | SLE-15-SP3 | emacss390x | Advisory build | 25.3-150000.3.22.1 | SUSE-SU-2024:2297-1 |
| SUSE / openSUSE | SLE-15-SP3 | emacsx86_64 | Advisory build | 25.3-150000.3.22.1 | SUSE-SU-2024:2297-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacsaarch64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacsppc64le | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacss390x | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP4 | emacsx86_64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP5 | emacsaarch64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP5 | emacsppc64le | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP5 | emacss390x | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP5 | emacsx86_64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP6 | emacsaarch64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP6 | emacsppc64le | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP6 | emacss390x | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | SLE-15-SP6 | emacsx86_64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | emacsaarch64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | emacsppc64le | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | emacss390x | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | emacsx86_64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | emacsaarch64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | emacsppc64le | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | emacss390x | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | emacsx86_64 | Advisory build | 27.2-150400.3.17.1 | SUSE-SU-2024:2567-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacsaarch64 | Advisory build | 29.4-2.1 | OPENSUSE-SU-2024:14117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacsppc64le | Advisory build | 29.4-2.1 | OPENSUSE-SU-2024:14117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacss390x | Advisory build | 29.4-2.1 | OPENSUSE-SU-2024:14117-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | emacsx86_64 | Advisory build | 29.4-2.1 | OPENSUSE-SU-2024:14117-1 |
| Ubuntu | jammy | emacs | Advisory build | 1:27.1+1-3ubuntu5.2 | USN-7027-1 |
| Ubuntu | noble | emacs | Advisory build | 1:29.3+1-1ubuntu2+esm1 | USN-7027-1 |
| AlmaLinux | 8 | emacs-common | Advisory build | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux | 8 | emacs-filesystem | Advisory build | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux | 8 | emacs-lucid | Advisory build | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux | 8 | emacs-nox | Advisory build | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux | 8 | emacs-terminal | Advisory build | 1:26.1-12.el8_10 | ALSA-2024:6987 |
| AlmaLinux | 9 | emacs-common | Advisory build | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| AlmaLinux | 9 | emacs-filesystem | Advisory build | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| AlmaLinux | 9 | emacs-lucid | Advisory build | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| AlmaLinux | 9 | emacs-nox | Advisory build | 1:27.2-10.el9_4 | ALSA-2024:6510 |
| Debian | bullseye | org-mode | Advisory build | 9.4.0+dfsg-1+deb11u3 | DSA-5718-1 |
| Debian | buster | org-mode | Advisory build | 9.1.14+dfsg-3+deb10u3 | DLA-3848-1 |
| Oracle Linux | 8 | emacs-commonaarch64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-commonx86_64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-filesystemaarch64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-filesystemx86_64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-lucidaarch64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-lucidx86_64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-noxaarch64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-noxx86_64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-terminalaarch64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 8 | emacs-terminalx86_64 | Advisory build | 1:26.1-12.el8_10 | ELSA-2024-6987 |
| Oracle Linux | 9 | emacs-commonaarch64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Oracle Linux | 9 | emacs-commonx86_64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Oracle Linux | 9 | emacs-filesystemaarch64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Oracle Linux | 9 | emacs-filesystemx86_64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Oracle Linux | 9 | emacs-lucidaarch64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Oracle Linux | 9 | emacs-lucidx86_64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Oracle Linux | 9 | emacs-noxaarch64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Oracle Linux | 9 | emacs-noxx86_64 | Advisory build | 1:27.2-10.el9_4 | ELSA-2024-6510 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonaarch64 | Advisory build | 1:26.1-10.el8_8.6 | RHSA-2024:6203 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonaarch64 | Advisory build | 1:26.1-12.el8_10 | RHSA-2024:6987 |
| Red Hat Enterprise Linux | RHEL-8 | emacs-commonaarch64 | Advisory build | 1:26.1-7.el8_6.5 | RHSA-2024:4971 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
| gnu | emacs | 0 to < 29.4 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- n/a
- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
9- https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29
- https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8
- https://list.orgmode.org/87sex5gdqc.fsf%40localhost/
- [debian-lts-announce] 20240629 [SECURITY] [DLA 3848-1] org-mode security update https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html
- [debian-lts-announce] 20240629 [SECURITY] [DLA 3849-1] org-mode security update https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html
- https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html
- https://news.ycombinator.com/item?id=40768225
- https://www.openwall.com/lists/oss-security/2024/06/23/1
- https://www.openwall.com/lists/oss-security/2024/06/23/2
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0fb51c3faf84bdeab61143d38ed63e5fd42a2fa20b556e49ec31da8752a30e45
- Ingested
- 04 Nov 2026, 00:11:56 UTC
- Source record
- Official CVE record