Vulnerabilities · 2024 · Gnu
CVE-2024-39331
Gnu Emacs vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Emacs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gnu Emacs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f4cc61636947b5c2f0afc67174dd369fe3 · Patch
- git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-29
- list.orgmode.org/87sex5gdqc.fsf%40localhost/
- lists.debian.org/debian-lts-announce/2024/06/msg00023.html
- lists.debian.org/debian-lts-announce/2024/06/msg00024.html
- lists.gnu.org/archive/html/info-gnu-emacs/2024-06/msg00000.html
- news.ycombinator.com/item?id=40768225
- www.openwall.com/lists/oss-security/2024/06/23/1
- nvd.nist.gov/vuln/detail/CVE-2024-39331
- cve.org/CVERecord?id=CVE-2024-39331
More vulnerabilities in Gnu products
CVE-2026-24061CVE-2026-0915CVE-2026-0861CVE-2025-66866CVE-2025-66865CVE-2025-66864CVE-2025-66863CVE-2025-66862All 1,147
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.