Skip to content
OpenAdvisories
Critical · 9.8 CVE-2024-39331 EUVD-2024-37900GHSA-hp3p-7892-f222

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 …

Published Jun 23, 2024 · Updated Nov 4, 2026 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 emacs 1:29.4+1-1 —
Debian 14 org-mode 9.7.5+dfsg-1 —
Debian 13 emacs 1:29.4+1-1 —
Debian 13 org-mode 9.7.5+dfsg-1 —
Debian 12 emacs 1:28.2+1-15+deb12u3 DSA-5719-1
Debian 12 org-mode No fix yet —
Debian 11 emacs 1:27.1+1-3.1+deb11u5 DSA-5719-1
Debian 11 org-mode 9.4.0+dfsg-1+deb11u3 DSA-5718-1
Debian 10 emacs 1:26.1+1-3.2+deb10u6 DLA-3849-1
Debian 10 org-mode 9.1.14+dfsg-3+deb10u3 DLA-3848-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 xemacs21 +1 No fix yet —
Ubuntu 26.04 LTS xemacs21 +1 No fix yet —
Ubuntu 25.10 xemacs21 +1 No fix yet —
Ubuntu 24.04 LTS xemacs21 +1 No fix yet —
Ubuntu 22.04 LTS emacs 1:27.1+1-3ubuntu5.2 USN-7027-1
Ubuntu 22.04 LTS xemacs21 +1 No fix yet —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS xemacs21 +1 No fix yet —
Ubuntu 18.04 LTS xemacs21 +1 No fix yet —
Ubuntu 16.04 LTS xemacs21 +1 No fix yet —
Ubuntu Pro 24.04 LTS emacs 1:29.3+1-1ubuntu2+esm1 USN-7027-1
Ubuntu Pro 24.04 LTS org-mode 9.6.10+dfsg-1ubuntu0.1~esm1 USN-7375-1
Ubuntu Pro 22.04 LTS org-mode 9.5.2+dfsh-4ubuntu0.1~esm1 USN-7375-1
Ubuntu Pro 20.04 LTS emacs 1:26.3+1-1ubuntu2+esm1 USN-7027-1
Ubuntu Pro 20.04 LTS org-mode 9.3.1+dfsg-1ubuntu0.1~esm1 USN-7375-1
Ubuntu Pro 18.04 LTS emacs25 25.2+1-6ubuntu0.1~esm2 USN-7027-1
Ubuntu Pro 18.04 LTS org-mode 9.1.6+dfsg-1ubuntu0.1~esm1 USN-7375-1
Ubuntu Pro 16.04 LTS emacs24 24.5+1-6ubuntu1.1+esm4 USN-7027-1
Ubuntu Pro 16.04 LTS org-mode 8.3.3-2ubuntu0.1~esm1 USN-7375-1
ReleasePackageFixed inAdvisory
RHEL 9 emacs +4 1:27.2-10.el9_4 RHSA-2024:6510
RHEL 8 emacs +5 1:26.1-12.el8_10 RHSA-2024:6987
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.8 EUS emacs +5 1:26.1-10.el8_8.6 RHSA-2024:6203
RHEL 8.6 TUS emacs +5 1:26.1-7.el8_6.5 RHSA-2024:4971
RHEL 8.6 E4S emacs +5 1:26.1-7.el8_6.5 RHSA-2024:4971
RHEL 8.6 AUS emacs +5 1:26.1-7.el8_6.5 RHSA-2024:4971

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 emacs +4 1:27.2-10.el9_4 ALSA-2024:6510
AlmaLinux 8 emacs +5 1:26.1-12.el8_10 ALSA-2024:6987

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 emacs 1:26.1-12.el8_10 RLSA-2024:6987
ReleasePackageFixed inAdvisory
SLES 15 SP6 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1
SLES 15 SP5 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1
SLES 15 SP4 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1
SLES 15 SP3 emacs 25.3-150000.3.22.1 SUSE-SU-2024:2297-1
SLES 15 SP2 emacs 25.3-150000.3.22.1 SUSE-SU-2024:2297-1
Show 11 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 emacs 24.3-25.20.1 SUSE-SU-2024:2293-1
SLES for SAP 15 SP4 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1
SLES for SAP 15 SP3 emacs 25.3-150000.3.22.1 SUSE-SU-2024:2297-1
SLES for SAP 15 SP2 emacs 25.3-150000.3.22.1 SUSE-SU-2024:2297-1
SLES for SAP 12 SP5 emacs 24.3-25.20.1 SUSE-SU-2024:2293-1
SLE HPC 15 SP4 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1
SLE HPC 15 SP3 emacs 25.3-150000.3.22.1 SUSE-SU-2024:2297-1
SLE HPC 15 SP2 emacs 25.3-150000.3.22.1 SUSE-SU-2024:2297-1
SUSE Manager Server 4.3 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1
SUSE Manager Proxy 4.3 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1
SUSE Enterprise Storage 7.1 emacs 25.3-150000.3.22.1 SUSE-SU-2024:2297-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed emacs 29.4-2.1 openSUSE-SU-2024:14117-1
openSUSE Tumbleweed syft 1.42.1-1.1 openSUSE-SU-2026:10228-1
openSUSE Leap 16.0 syft 1.45.0-bp160.1.1 openSUSE-SU-2026:20928-1
openSUSE Leap 15.6 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1
openSUSE Leap 15.5 emacs 27.2-150400.3.17.1 SUSE-SU-2024:2567-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 emacs +6 1:28.2-3.amzn2023.0.8 ALAS2023-2024-663
Amazon Linux 2 emacs +6 1:27.2-4.amzn2.0.5 ALAS2-2024-2608

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 emacs 29.4-1 —
Azure Linux 2 (CBL-Mariner) emacs 29.4-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 emacs +4 1:27.2-10.el9_4 ELSA-2024-6510
Oracle Linux 8 emacs +5 1:26.1-12.el8_10 ELSA-2024-6987

Advisories 25

References