CVE-2024-39331
Detail
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.
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
NVD assessment
not yet provided.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 Severity and Vector Strings:
NVD assessment
not yet provided.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-94
Improper Control of Generation of Code ('Code Injection')
CISA-ADP
Change History
7 change records found show changes
CVE Modified by CISA-ADP
6/17/2026 3:41:43 AM
Action
Type
Old Value
New Value
Added
Affected
[{"vendor":"gnu","product":"emacs","defaultStatus":"unknown","cpes":["cpe:2.3:a:gnu:emacs:-:*:*:*:*:*:*:*"],"versions":[{"version":"0","lessThan":"29.4","versionType":"custom","status":"affected"}]}]
Added
SSVC
{"timestamp":"2024-08-21T00:00:00+00:00","id":"CVE-2024-39331","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}
CVE Modified by MITRE
6/17/2026 3:41:43 AM
Action
Type
Old Value
New Value
Added
Affected
[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]
Initial Analysis by NIST
4/30/2025 12:44:51 PM
Action
Type
Old Value
New Value
Added
CPE Configuration
OR
*cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:* versions up to (excluding) 29.4
Added
Reference Type
CVE: https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29 Types: Release Notes
Added
Reference Type
CVE: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8 Types: Mailing List, Patch
Added
Reference Type
CVE: https://list.orgmode.org/87sex5gdqc.fsf%40localhost/ Types: Mailing List
Added
Reference Type
CVE: https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html Types: Mailing List
Added
Reference Type
CVE: https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html Types: Mailing List
Added
Reference Type
CVE: https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html Types: Mailing List
Added
Reference Type
CVE: https://news.ycombinator.com/item?id=40768225 Types: Mailing List
Added
Reference Type
CVE: https://www.openwall.com/lists/oss-security/2024/06/23/1 Types: Mailing List
Added
Reference Type
CVE: https://www.openwall.com/lists/oss-security/2024/06/23/2 Types: Mailing List
Added
Reference Type
MITRE: https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29 Types: Release Notes
Added
Reference Type
MITRE: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8 Types: Mailing List, Patch
Added
Reference Type
MITRE: https://list.orgmode.org/87sex5gdqc.fsf%40localhost/ Types: Mailing List
Added
Reference Type
MITRE: https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html Types: Mailing List
Added
Reference Type
MITRE: https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html Types: Mailing List
Added
Reference Type
MITRE: https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html Types: Mailing List
Added
Reference Type
MITRE: https://news.ycombinator.com/item?id=40768225 Types: Mailing List
Added
Reference Type
MITRE: https://www.openwall.com/lists/oss-security/2024/06/23/1 Types: Mailing List
Added
Reference Type
MITRE: https://www.openwall.com/lists/oss-security/2024/06/23/2 Types: Mailing List
CVE Modified by CVE
11/21/2024 4:27:28 AM
Action
Type
Old Value
New Value
Added
Reference
https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29
Added
Reference
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8
Added
Reference
https://list.orgmode.org/87sex5gdqc.fsf%40localhost/
Added
Reference
https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html
Added
Reference
https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html
Added
Reference
https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html
Added
Reference
https://news.ycombinator.com/item?id=40768225
Added
Reference
https://www.openwall.com/lists/oss-security/2024/06/23/1
Added
Reference
https://www.openwall.com/lists/oss-security/2024/06/23/2
CVE Modified by CISA-ADP
7/02/2024 10:05:47 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
CISA-ADP AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Added
CWE
CISA-ADP CWE-94
CVE Modified by MITRE
6/29/2024 3:15:02 AM
Action
Type
Old Value
New Value
Added
Reference
MITRE https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html [No types assigned]
Added
Reference
MITRE https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html [No types assigned]
New CVE Received from MITRE
6/23/2024 6:15:09 PM
Action
Type
Old Value
New Value
Added
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.
Added
Reference
MITRE https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29 [No types assigned]
Added
Reference
MITRE https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8 [No types assigned]
Added
Reference
MITRE https://list.orgmode.org/87sex5gdqc.fsf%40localhost/ [No types assigned]
Added
Reference
MITRE https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html [No types assigned]
Added
Reference
MITRE https://news.ycombinator.com/item?id=40768225 [No types assigned]
Added
Reference
MITRE https://www.openwall.com/lists/oss-security/2024/06/23/1 [No types assigned]
Added
Reference
MITRE https://www.openwall.com/lists/oss-security/2024/06/23/2 [No types assigned]
Quick Info
CVE Dictionary Entry: CVE-2024-39331 NVD
Published Date: 06/23/2024 NVD
Last Modified: 06/17/2026
Source: MITRE