Skip to content
OpenAdvisories

Description

A code execution flaw was found in Emacs, affecting versions prior to 31.2. The Flymake mode using language backends other than Lisp would execute arbitrary code from the edited file while performing syntax checking. Viewing or editing untrusted files using Emacs could lead to arbitrary code execution with the privileges of the user running Emacs.

Affected products

VendorProductAffectedFixed
GNU Emacs GNU Emacs < 31.2 31.2
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —

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 No fix yet —
Debian 13 emacs No fix yet —
Debian 12 emacs No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 emacs +2 No fix yet —
Ubuntu 26.04 LTS xemacs21 +1 No fix yet —
Ubuntu 24.04 LTS xemacs21 +1 No fix yet —
Ubuntu 22.04 LTS xemacs21 +1 No fix yet —
Ubuntu 20.04 LTS xemacs21 +1 No fix yet —
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS xemacs21 +1 No fix yet —
Ubuntu 16.04 LTS xemacs21 +1 No fix yet —
Ubuntu Pro 26.04 LTS emacs No fix yet —
Ubuntu Pro 24.04 LTS emacs No fix yet —
Ubuntu Pro 22.04 LTS emacs No fix yet —
Ubuntu Pro 20.04 LTS emacs No fix yet —
Ubuntu Pro 18.04 LTS emacs25 No fix yet —
Ubuntu Pro 16.04 LTS emacs24 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 emacs +4 1:29.4-14.el10_2.3 RHSA-2026:84591
RHEL 9 emacs +4 1:27.2-18.el9_8.3 RHSA-2026:85245

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 emacs +4 1:29.4-14.el10_2.3 ALSA-2026:84591
AlmaLinux 9 emacs +4 1:27.2-18.el9_8.3 ALSA-2026:85245
AlmaLinux 8 emacs +5 1:26.1-15.el8_10.4 ALSA-2026:90800

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 emacs 1:29.4-14.el10_2.3 RLSA-2026:98574, RLSA-2026:84591
Rocky Linux 10 emacs-nw +3 1:29.4-17.el10_3 RLSA-2026:98574
Rocky Linux 9 emacs 1:27.2-18.el9_8.3 RLSA-2026:99160, RLSA-2026:85245
Rocky Linux 9 emacs-nox +3 1:27.2-18.el9_9.1 RLSA-2026:99160
Rocky Linux 8 emacs 1:26.1-15.el8_10.4 RLSA-2026:90800
ReleasePackageFixed inAdvisory
SLES 15 SP7 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
SLES 15 SP6 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
SLES 15 SP5 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
SLES 15 SP4 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 emacs 30.2-160000.4.1 SUSE-SU-2026:23949-1
SLES for SAP 15 SP6 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
SLES for SAP 15 SP5 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
SLES for SAP 15 SP4 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
SLES 16.0 emacs 30.2-160000.4.1 SUSE-SU-2026:23949-1
SLE HPC 15 SP5 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
SLE HPC 15 SP4 emacs 27.2-150400.3.34.1 SUSE-SU-2026:4594-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed emacs 31.1-4.1 openSUSE-SU-2026:11889-1
openSUSE Leap 16.0 emacs 30.2-160000.4.1 openSUSE-SU-2026:21974-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 emacs +6 1:28.2-3.amzn2023.0.12 ALAS2023-2026-3195
Amazon Linux 2 emacs +6 1:27.2-4.amzn2.0.9 ALAS2-2026-3979

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 emacs 29.4-7 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 emacs +4 1:29.4-14.el10_2.3 ELSA-2026-84591
Oracle Linux 9 emacs +4 1:27.2-18.el9_8.3 ELSA-2026-85245
Oracle Linux 8 emacs +5 1:26.1-15.el8_10.4 ELSA-2026-90800

Advisories 20

References