CVE-2024-39331: gnu emacs Improper Control of Generation of Code
Vulnerability summary
CVE-2024-39331 is a critical (CVSS 9.8) Improper Control of Generation of Code vulnerability in gnu emacs. EPSS estimates a 1.32% chance of exploitation in the next 30 days, higher than 71.8% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 3Timeline
- 23-06-2024PublishedVulnerability first disclosed.
- 04-11-2026Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · Red hatEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.32%
Chance of exploitation in the next 30 days
Percentile
72%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.32% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse12 products
- emacs&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 27.2-150400.3.17.1
- emacs&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 27.2-150400.3.17.1
- emacs&distro=SUSE Linux Enterprise Module for Basesystem 15 SP5< 27.2-150400.3.17.1
- emacs&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6< 27.2-150400.3.17.1
- emacs&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP5< 27.2-150400.3.17.1
Redhat11 products
- emacs< 1:26.1-7.el8_6.5 | < 1:26.1-10.el8_8.6 | < 1:27.2-10.el9_4
- emacs-common< 1:26.1-7.el8_6.5 | < 1:26.1-10.el8_8.6 | < 1:27.2-10.el9_4
- emacs-common-debuginfo< 1:26.1-7.el8_6.5 | < 1:26.1-10.el8_8.6 | < 1:27.2-10.el9_4
- emacs-debuginfo< 1:26.1-7.el8_6.5 | < 1:26.1-10.el8_8.6 | < 1:27.2-10.el9_4
- emacs-debugsource< 1:26.1-7.el8_6.5 | < 1:26.1-10.el8_8.6 | < 1:27.2-10.el9_4
Ubuntu6 products
- emacs< 1:26.3+1-1ubuntu2+esm1 | < 1:27.1+1-3ubuntu5.2 | < 1:29.3+1-1ubuntu2+esm1
- emacs24< 24.5+1-6ubuntu1.1+esm4
- emacs25< 25.2+1-6ubuntu0.1~esm2
- org-mode< 8.3.3-2ubuntu0.1~esm1 | < 9.1.6+dfsg-1ubuntu0.1~esm1 | < 9.3.1+dfsg-1ubuntu0.1~esm1 | < 9.5.2+dfsh-4ubuntu0.1~esm1 | < 9.6.10+dfsg-1ubuntu0.1~esm1
- xemacs21All versions (No fix recorded)
Opensuse5 products
- emacs&distro=openSUSE Leap 15.5< 27.2-150400.3.17.1
- emacs&distro=openSUSE Leap 15.6< 27.2-150400.3.17.1
- emacs&distro=openSUSE Tumbleweed< 29.4-2.1
- syft&distro=openSUSE Leap 16.0< 1.45.0-bp160.1.1
- syft&distro=openSUSE Tumbleweed< 1.42.1-1.1
Debian2 products
- emacs< 1:29.4+1-1 | < 1:26.1+1-3.2+deb10u6 | < 1:27.1+1-3.1+deb11u5 | < 1:28.2+1-15+deb12u3
- org-modeAll versions (No fix recorded) | < 9.7.5+dfsg-1 | < 9.1.14+dfsg-3+deb10u3 | < 9.4.0+dfsg-1+deb11u3
Gnu1 product
- emacs< 29.4
Mageia1 product
- emacs< 29.4-1.mga9
7 vendors · 38 products