VDB

CVE-2024-39331

CVE-2024-39331 PUBLISHED CVSS 9.8 CRITICAL

Reported by mitre · Published June 23, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
emacs-noxAmazon Linux1:28.2-3.amzn2023.0.8, 1:27.2-4.amzn2.0.5
emacs-develAmazon Linux1:27.2-4.amzn2.0.5
emacs-filesystemAmazon Linux1:28.2-3.amzn2023.0.8, 1:27.2-4.amzn2.0.5
emacsAmazon Linux1:28.2-3.amzn2023.0.8, 1:27.2-4.amzn2.0.5
emacs-commonAmazon Linux1:28.2-3.amzn2023.0.8, 1:27.2-4.amzn2.0.5
emacs-lucidAmazon Linux1:28.2-3.amzn2023.0.8, 1:27.2-4.amzn2.0.5
emacs-terminalAmazon Linux1:28.2-3.amzn2023.0.8, 1:27.2-4.amzn2.0.5
emacsgnu29.4

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2emacs-nox0
amazon:2emacs-devel0
amazon:2023emacs-filesystem0
amazon:2023emacs0
amazon:2emacs-common0
gnuemacs0
amazon:2emacs-filesystem0
amazon:2emacs0
amazon:2023emacs-lucid0
amazon:2023emacs-nox0
amazon:2023emacs-common0
amazon:2emacs-lucid0
amazon:2023emacs-terminal0
amazon:2emacs-terminal0
n/an/a*
amazon:2023emacs-devel0

Timeline

  • Jun 23, 2024 CVE Published
  • Jun 24, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
  • Jun 2, 2026 Security Advisory (12 in total, the first dated here)
  • Aug 10, 2026 Distribution Patch (10 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-39331
vulnetix vdb fixes CVE-2024-39331

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-39331/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›