CVE record · CVE-2024-39331

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.

CVSS 9.8 CriticalCriticalEPSS 0.013 · 71st percentile

Critical, because:

  • CVSS score 9.8: 9.0 or more.

How we decide what’s critical

Published by the CVE Program (CNA: mitre) at 23 Jun 2024, 00:00 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

Affected products, as the CNA wrote them
VendorProductVersions
Not given Not given
  • affected n/a
Identifiers
CVE-2024-39331
CNA
mitre
Weakness (CWE)
CWE-94
Published
23 Jun 2024
Updated
4 Nov 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Emacs before 29.4 is vulnerable: org-link-expand-abbrev in lisp/ol.el expands a %(...) link abbrev even when it names an unsafe function such as shell-command-to-string. The source says this also affects Org Mode before 9.7.5. The source does not list a fixed Emacs or Org Mode version beyond these cutoffs, and it does not describe what an attacker must do to trigger the expansion, so the required access and impact are not stated.

Written 15 Nov 2026.

Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H ADP (CISA-ADP)
  • CISA KEV Not listed.
  • EPSS 0.013, the 71st percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 23 Jun 2024, 00:00 UTC Confirmed by the CVE List
  2. 23 Jun 2024, 22:15 UTC Confirmed by NVD

Sources

References from the CNA

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.