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.
CVE-2024-39331
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2024-06-24. NVD baseline CVSS 9.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EG Risk
- 60(Track)EG Risk 60/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation1% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 1%
- EPSS %ILE
- 70%
- KEV
- Not listed
Published
June 23, 2024
Last Modified
April 30, 2025
Advisory Details (9)
Auto-updated Sep 17, 2026NEWS « etc - emacs.git - Emacs source repository
https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29oss-security - Re: Arbitrary shell command evaluation in Org mode (GNU Emacs)
https://www.openwall.com/lists/oss-security/2024/06/23/2oss-security - Arbitrary shell command evaluation in Org mode (GNU Emacs)
https://www.openwall.com/lists/oss-security/2024/06/23/1Arbitrary shell command evaluation in Org Mode (GNU Emacs) | Hacker News
https://news.ycombinator.com/item?id=40768225[SECURITY] [DLA 3849-1] org-mode security update
https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html[SECURITY] [DLA 3848-1] org-mode security update
https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html[ANN] Emergency bugfix release: Org mode 9.7.5 - Ihor Radchenko
https://list.orgmode.org/87sex5gdqc.fsf%40localhost/org-link-expand-abbrev: Do not evaluate arbitrary unsafe Elisp code - emacs/org-mode.git - Emacs Org mode
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8Vendor Advisories for CVE-2024-39331(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(6)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | emacs24-nox (24.5+1-6ubuntu1.1+esm4) @ xenial | 2026-05-23 | ubuntu |
| ubuntu | org-mode (9.1.6+dfsg-1ubuntu0.1~esm1) @ bionic | 2026-05-23 | ubuntu |
| redhat | emacs-1:26.1-12.el8_10 | 2024-09-24 | redhat |
| redhat | emacs-1:27.2-10.el9_4 | 2024-09-09 | redhat |
| redhat | emacs-1:26.1-10.el8_8.6 | 2024-09-03 | redhat |
| redhat | emacs-1:26.1-7.el8_6.5 | 2024-08-01 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(10 across 5 ecosystems)
Debian:10(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| emacs | 1:26.1+1-3.2 ... 1:26.1+1-3.2+deb10u5 (6 versions) | 1:26.1+1-3.2+deb10u6 | — |
| org-mode | 9.1.14+dfsg-3, 9.1.14+dfsg-3+deb10u1, 9.1.14+dfsg-3+deb10u2 | 9.1.14+dfsg-3+deb10u3 | — |
Debian:11(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| emacs | 1:27.1+1-3.1, 1:27.1+1-3.1+deb11u1, 1:27.1+1-3.1+deb11u2, 1:27.1+1-3.1+deb11u3, 1:27.1+1-3.1+deb11u4 | 1:27.1+1-3.1+deb11u5 | — |
| org-mode | 9.4.0+dfsg-1, 9.4.0+dfsg-1+deb11u1, 9.4.0+dfsg-1+deb11u2 | 9.4.0+dfsg-1+deb11u3 | — |
Debian:12(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| emacs | 1:28.2+1-15, 1:28.2+1-15+deb12u1, 1:28.2+1-15+deb12u2 | 1:28.2+1-15+deb12u3 | — |
| org-mode | 9.5.2+dfsh-5 ... 9.8.9+dfsg-1 (28 versions) | — | — |
Debian:13(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| emacs | — | 1:29.4+1-1 | — |
| org-mode | — | 9.7.5+dfsg-1 | — |
Debian:14(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| emacs | — | 1:29.4+1-1 | — |
| org-mode | — | 9.7.5+dfsg-1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(6)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2024:4971MODERATE2024-06-23
RHSA-2024:4971 — Moderate
- Red HatRHSA-2024:6203MODERATE2024-06-23
RHSA-2024:6203 — Moderate
- Red HatRHSA-2024:6510MODERATE2024-06-23
RHSA-2024:6510 — Moderate
- Red HatRHSA-2024:6987MODERATE2024-06-23
RHSA-2024:6987 — Moderate
- UbuntuUSN-7027-1MEDIUM
Emacs vulnerabilities
- UbuntuUSN-7375-1MEDIUM
Org Mode vulnerabilities
Data Freshness Timeline
(refreshed 5× in last 7d / 29× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 161 total refreshes for this CVE.
- 2026-09-19 15:40 UTCEPSS rescore
- 2026-09-18 19:26 UTCEPSS rescore
- 2026-09-16 14:06 UTCEPSS rescore
- 2026-09-15 03:08 UTCEPSS rescore
- 2026-09-15 03:08 UTCEPSS rescore
- 2026-09-13 16:45 UTCEPSS rescore
- 2026-09-12 14:59 UTCEPSS rescore
- 2026-09-11 14:51 UTCEPSS rescore
- 2026-09-11 09:35 UTCEPSS rescore
- 2026-09-08 21:58 UTCEPSS rescore
- 2026-09-07 16:00 UTCEPSS rescore
- 2026-09-07 15:59 UTCEPSS rescore
- 2026-09-06 13:46 UTCEPSS rescore
- 2026-09-05 15:26 UTCEPSS rescore
- 2026-09-04 13:59 UTCEPSS rescore
- 2026-09-04 05:05 UTCEPSS rescore
- 2026-09-02 14:10 UTCEPSS rescore
- 2026-09-02 00:40 UTCOSV refresh
- 2026-09-01 13:52 UTCEPSS rescore
- 2026-09-01 04:37 UTCEPSS rescore
- 2026-08-30 19:15 UTCEPSS rescore
- 2026-08-30 01:20 UTCEPSS rescore
- 2026-08-28 21:39 UTCEPSS rescore
- 2026-08-27 14:23 UTCEPSS rescore
- 2026-08-26 14:44 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-25 13:47 UTCEPSS rescore
- 2026-08-24 14:15 UTCEPSS rescore
- 2026-08-23 00:18 UTCEPSS rescore
- 2026-08-21 23:47 UTCEPSS rescore
- 2026-08-20 22:53 UTCEPSS rescore
- 2026-08-19 17:02 UTCEPSS rescore
- 2026-08-18 13:46 UTCEPSS rescore
- 2026-08-17 13:45 UTCEPSS rescore
- 2026-08-16 14:54 UTCEPSS rescore
- 2026-08-16 02:43 UTCOSV refresh
- 2026-08-16 02:13 UTCEPSS rescore
- 2026-08-15 01:28 UTCEPSS rescore
- 2026-08-13 21:59 UTCEPSS rescore
- 2026-08-12 13:49 UTCEPSS rescore
- 2026-08-11 13:40 UTCEPSS rescore
- 2026-08-10 23:58 UTCEPSS rescore
- 2026-08-09 13:45 UTCEPSS rescore
- 2026-08-08 16:35 UTCEPSS rescore
- 2026-08-07 16:25 UTCEPSS rescore
- 2026-08-06 13:45 UTCEPSS rescore
- 2026-08-05 19:16 UTCEPSS rescore
- 2026-08-04 15:08 UTCEPSS rescore
- 2026-08-04 10:36 UTCEPSS rescore
- 2026-08-03 10:34 UTCEPSS rescore
- 2026-08-03 10:34 UTCEPSS rescore
- 2026-08-02 02:25 UTCEPSS rescore
- 2026-08-01 04:14 UTCEPSS rescore
- 2026-08-01 04:14 UTCEPSS rescore
- 2026-07-31 20:42 UTCOSV refresh
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 16:26 UTCEPSS rescore
- 2026-07-30 01:29 UTCEPSS rescore
- 2026-07-28 15:34 UTCEPSS rescore
- 2026-07-27 14:11 UTCEPSS rescore
- 2026-07-26 14:53 UTCEPSS rescore
- 2026-07-25 14:16 UTCEPSS rescore
- 2026-07-24 14:16 UTCEPSS rescore
- 2026-07-23 14:17 UTCEPSS rescore
- 2026-07-23 14:17 UTCEPSS rescore
- 2026-07-23 02:38 UTCEG score recompute
- 2026-07-22 14:07 UTCEPSS rescore
- 2026-07-22 14:07 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-21 15:23 UTCEPSS rescore
- 2026-07-20 17:06 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-19 02:28 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-16 17:02 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-14 03:40 UTCOSV refresh
- 2026-07-13 22:29 UTCEPSS rescore
- 2026-07-13 06:11 UTCEPSS rescore
- 2026-07-12 05:45 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-11 08:26 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:14 UTCEPSS rescore
- 2026-07-08 15:13 UTCEPSS rescore
- 2026-07-06 16:26 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-06 02:22 UTCEPSS rescore
- 2026-07-05 02:29 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-01 15:05 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-30 23:21 UTCEPSS rescore
- 2026-06-29 14:05 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
Related CVEs(same vendor + same CWE)
Same vendor
9 shownredhat:RHSA-2024:6987 · ubuntu:USN-7027-1 · ubuntu:USN-7375-1
Same CWE
10 shownCWE-94
Frequently asked(5)
What is CVE-2024-39331?
When was CVE-2024-39331 disclosed?
Is CVE-2024-39331 actively exploited?
What is the CVSS score of CVE-2024-39331?
How do I remediate CVE-2024-39331?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2024-39331
Is Your Infrastructure Affected by CVE-2024-39331?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.