{"id":"CVE-2024-39331","url":"https://www.cyber-defence.io/tools/cve/CVE-2024-39331","generatedAt":"2026-10-28T03:23:11.517Z","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.","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.","published":"2024-06-23T22:15:09.000Z","lastModified":"2026-06-17T07:41:44.000Z","status":"Analyzed","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-94"],"affected":["gnu/emacs"],"epss":{"score":0.01323,"percentile":0.70708,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"high","text":"High impact if exploited, but EPSS currently rates exploitation as unlikely (1.32%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit."},"changes":[],"references":[{"url":"https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29","tags":["Release Notes"],"source":"cve@mitre.org"},{"url":"https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8","tags":["Mailing List","Patch"],"source":"cve@mitre.org"},{"url":"https://list.orgmode.org/87sex5gdqc.fsf%40localhost/","tags":["Mailing List"],"source":"cve@mitre.org"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html","tags":["Mailing List"],"source":"cve@mitre.org"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html","tags":["Mailing List"],"source":"cve@mitre.org"},{"url":"https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html","tags":["Mailing List"],"source":"cve@mitre.org"},{"url":"https://news.ycombinator.com/item?id=40768225","tags":["Mailing List"],"source":"cve@mitre.org"},{"url":"https://www.openwall.com/lists/oss-security/2024/06/23/1","tags":["Mailing List"],"source":"cve@mitre.org"},{"url":"https://www.openwall.com/lists/oss-security/2024/06/23/2","tags":["Mailing List"],"source":"cve@mitre.org"},{"url":"https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29","tags":["Release Notes"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8","tags":["Mailing List","Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://list.orgmode.org/87sex5gdqc.fsf%40localhost/","tags":["Mailing List"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00023.html","tags":["Mailing List"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00024.html","tags":["Mailing List"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html","tags":["Mailing List"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://news.ycombinator.com/item?id=40768225","tags":["Mailing List"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.openwall.com/lists/oss-security/2024/06/23/1","tags":["Mailing List"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.openwall.com/lists/oss-security/2024/06/23/2","tags":["Mailing List"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-39331","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}