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 a…
CVE-2024-39331 · GHSA-hp3p-7892-f222 · EUVD-2024-37900 · published 23 Jun 2024
How serious is it
- Severity: critical, CVSS score 9.8 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2024-39331?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
- n/a: n/a
How to check
- Find out whether you run the affected product and which version, then compare it with the versions above.
How to fix
Copies a prompt for Claude Code, Cursor or Codex that asks it to check whether you run this product.
- Apply the vendor's update or mitigation from the references below. If there is none yet, limit exposure of the affected service until there is.
- If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
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.
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29
- list.orgmode.org/87sex5gdqc.fsf%40localhost/
- lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html
- git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8
- www.openwall.com/lists/oss-security/2024/06/23/1
- www.openwall.com/lists/oss-security/2024/06/23/2
- news.ycombinator.com/item?id=40768225
- lists.debian.org/debian-lts-announce/2024/06/msg00023.html
- lists.debian.org/debian-lts-announce/2024/06/msg00024.html
Merged from ENISA EUVD. Last updated 4 Nov 2026. All vulnerabilities · RSS · JSON