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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | emacs | No fix yet | — |
| Debian 13 | emacs | No fix yet | — |
| Debian 12 | emacs | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | emacs | 29.4-7 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- RLSA-2026:98574 Important: emacs security update Rocky Linux Security Advisories · Nov 13, 2026
- RLSA-2026:99160 Important: emacs security update Rocky Linux Security Advisories · Nov 13, 2026
- WID-SEC-2024-3558 GNU Emacs und Red Hat Enterprise Linux: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Nov 11, 2026
- RLSA-2026:90800 Important: emacs security update Rocky Linux Security Advisories · Oct 29, 2026
- ALSA-2026:85245 Important: emacs security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:84591 Important: emacs security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:90800 Important: emacs security update AlmaLinux Security Advisories · Oct 29, 2026
- ELSA-2026-90800 Important: emacs security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Oct 27, 2026
- RLSA-2026:85245 Important: emacs security update Rocky Linux Security Advisories · Oct 20, 2026
- RLSA-2026:84591 Important: emacs security update Rocky Linux Security Advisories · Oct 20, 2026
- RHSA-2026:85245 Red Hat Security Advisory: emacs security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:84591 Red Hat Security Advisory: emacs security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- ELSA-2026-84591 Important: emacs security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Oct 19, 2026
- ELSA-2026-85245 Important: emacs security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Oct 19, 2026
- ALAS2-2026-3979 Important: emacs security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 12, 2026
- ALAS2023-2026-3195 Important: emacs security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 12, 2026
- SUSE-SU-2026:4594-1 Security update for emacs SUSE / openSUSE Security Updates · Oct 9, 2026
- SUSE-SU-2026:23949-1 Security update for emacs SUSE / openSUSE Security Updates · Oct 2, 2026
- openSUSE-SU-2026:21974-1 Security update for emacs SUSE / openSUSE Security Updates · Oct 1, 2026
- openSUSE-SU-2026:11889-1 emacs-31.1-4.1 on GA media SUSE / openSUSE Security Updates · Sep 29, 2026
References
- RHSA-2026:84591 vendor-advisory
- RHSA-2026:85245 vendor-advisory
- RHSA-2026:90800 vendor-advisory
- RHSA-2026:98574 vendor-advisory
- RHSA-2026:99160 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-96442 vdb-entry
- RHBZ#2537347 issue-tracking
- https://github.com/emacs-mirror/emacs/commit/135e6f63f08fee3d374fa1a5187bce941a2d3e3c
- https://github.com/emacs-mirror/emacs/commit/abc802ee2eb0b1663349ddf22a461f8e54a383fb
- https://www.openwall.com/lists/oss-security/2026/09/14/1