← Vulnerability feed

Vulnerability record · CVE-2024-39331 · published 23 June 2024

CVE-2024-39331: Gnu emacs code injection vulnerability

Gnu · Emacs

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.

9.8 CVSS 3.1 Critical EPSS 1.3% · top 30.2% CWE-94 · Code injection
9.8CVSS 3.1 base score
1.3%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
18References
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-39331 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2007-6109Gnu emacs memory buffer overflow vulnerabilityStack-based buffer overflow in emacs allows user-assisted attackers to cause a denial of service (application crash) and possibly have unspecified ot…EPSS 3.0%9.8CVE-2022-48337Gnu emacs os command injection vulnerabilityGNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses …EPSS 1.6%9.3CVE-2012-0035Eric m ludlam cedet vulnerabilityUntrusted search path vulnerability in EDE in CEDET before 1.0.1, as used in GNU Emacs before 23.4 and other products, allows local users to gain pri…EPSS 2.3%8.8CVE-2017-14482Gnu emacs vulnerabilityGNU Emacs before 25.3 allows remote attackers to execute arbitrary code via email with crafted "Content-Type: text/enriched" data containing an x-dis…EPSS 4.0%7.8CVE-2024-53920Gnu emacs code injection vulnerabilityIn elisp-mode.el in GNU Emacs before 30.1, a user who chooses to invoke elisp-completion-at-point (for code completion) on untrusted Emacs Lisp sourc…EPSS 0.60%7.8CVE-2024-30202Gnu emacs code injection vulnerabilityIn Emacs before 29.3, arbitrary Lisp code is evaluated as part of turning on Org mode. This affects Org Mode before 9.6.23.EPSS 1.1%7.8CVE-2023-2491Gnu emacs command injection vulnerabilityA flaw was found in the Emacs text editor. Processing a specially crafted org-mode code with the "org-babel-execute:latex" function in ob-latex.el ca…EPSS 0.46%7.8CVE-2023-27986Gnu emacs code injection vulnerabilityemacsclient-mail.desktop in Emacs 28.1 through 28.2 is vulnerable to Emacs Lisp code injections through a crafted mailto: URI with unescaped double-q…EPSS 0.48%

Source: NIST National Vulnerability Database (record CVE-2024-39331), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.