{"id":"CVE-2024-39331","state":"PUBLISHED","title":"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","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.","publishedAt":"2024-06-23T00:00:00.000Z","updatedAt":"2024-08-22T03:55:10.601Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29","https://list.orgmode.org/87sex5gdqc.fsf%40localhost/","https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html","https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8","https://www.openwall.com/lists/oss-security/2024/06/23/1","https://www.openwall.com/lists/oss-security/2024/06/23/2","https://news.ycombinator.com/item?id=40768225","https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html","https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/39xxx/CVE-2024-39331.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-39331","state":"PUBLISHED","datePublished":"2024-06-23T00:00:00.000Z","dateUpdated":"2024-08-22T03:55:10.601Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2024-06-23T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29"},{"url":"https://list.orgmode.org/87sex5gdqc.fsf%40localhost/"},{"url":"https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html"},{"url":"https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8"},{"url":"https://www.openwall.com/lists/oss-security/2024/06/23/1"},{"url":"https://www.openwall.com/lists/oss-security/2024/06/23/2"},{"url":"https://news.ycombinator.com/item?id=40768225"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html","name":"[debian-lts-announce] 20240629 [SECURITY] [DLA 3848-1] org-mode security update","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html","name":"[debian-lts-announce] 20240629 [SECURITY] [DLA 3849-1] org-mode security update","tags":["mailing-list"]}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2024-06-29T07:06:02.248Z"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"gnu","product":"emacs","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"29.4","versionType":"custom"}],"cpes":["cpe:2.3:a:gnu:emacs:-:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-08-21T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2024-39331"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","type":"CWE","lang":"en","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-22T03:55:10.601Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29","tags":["x_transferred"]},{"url":"https://list.orgmode.org/87sex5gdqc.fsf%40localhost/","tags":["x_transferred"]},{"url":"https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html","tags":["x_transferred"]},{"url":"https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8","tags":["x_transferred"]},{"url":"https://www.openwall.com/lists/oss-security/2024/06/23/1","tags":["x_transferred"]},{"url":"https://www.openwall.com/lists/oss-security/2024/06/23/2","tags":["x_transferred"]},{"url":"https://news.ycombinator.com/item?id=40768225","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html","name":"[debian-lts-announce] 20240629 [SECURITY] [DLA 3848-1] org-mode security update","tags":["mailing-list","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html","name":"[debian-lts-announce] 20240629 [SECURITY] [DLA 3849-1] org-mode security update","tags":["mailing-list","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:26:14.279Z"}}]}}}