CVE-2026-96442Emacs: emacs: arbitrary code execution in flymake mode
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.
What to do
Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | emacs | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 26.10 | xemacs21 | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 26.10 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 26.04 | emacs | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 26.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-96442 | |
| Ubuntu 26.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-96442 | |
| Ubuntu 24.04 | emacs | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 24.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-96442 | |
| Ubuntu 24.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-96442 | |
| Ubuntu 22.04 | emacs | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 22.04 | xemacs21 | Under investigation | UBUNTU-CVE-2026-96442 | |
| Ubuntu 22.04 | xemacs21-packages | Under investigation | UBUNTU-CVE-2026-96442 | |
| Ubuntu 20.04 | emacs | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 20.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 20.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 18.04 | emacs25 | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 18.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 18.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 16.04 | emacs24 | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 16.04 | xemacs21 | Fix pending | UBUNTU-CVE-2026-96442 | |
| Ubuntu 16.04 | xemacs21-packages | Fix pending | UBUNTU-CVE-2026-96442 | |
| Debian 14 | emacs | Fix pending | DEBIAN-CVE-2026-96442 | |
| Debian 13 | emacs | Fix pending | DEBIAN-CVE-2026-96442 | |
| Debian 12 | emacs | Fix pending | DEBIAN-CVE-2026-96442 | |
| Red Hat Enterprise Linux 10 | emacs | Fixed | 1:29.4-14.el10_2.3 | RHSA-2026:98574 |
| Red Hat Enterprise Linux 10 | emacs-common | Fixed | 1:29.4-14.el10_2.3 | RHSA-2026:98574 |
| Red Hat Enterprise Linux 10 | emacs-filesystem | Fixed | 1:29.4-17.el10_3 | RHSA-2026:84591 |
| Red Hat Enterprise Linux 10 | emacs-lucid | Fixed | 1:29.4-17.el10_3 | RHSA-2026:84591 |
| Red Hat Enterprise Linux 10 | emacs-nw | Fixed | 1:29.4-14.el10_2.3 | RHSA-2026:98574 |
| Red Hat Enterprise Linux 9 | emacs | Fixed | 1:27.2-18.el9_9.1 | RHSA-2026:85245 |
| Red Hat Enterprise Linux 9 | emacs-common | Fixed | 1:27.2-18.el9_8.3 | RHSA-2026:99160 |
| Red Hat Enterprise Linux 9 | emacs-filesystem | Fixed | 1:27.2-18.el9_9.1 | RHSA-2026:85245 |
| Red Hat Enterprise Linux 9 | emacs-lucid | Fixed | 1:27.2-18.el9_9.1 | RHSA-2026:85245 |
| Red Hat Enterprise Linux 9 | emacs-nox | Fixed | 1:27.2-18.el9_9.1 | RHSA-2026:85245 |
| Red Hat Enterprise Linux 8 | emacs | Fixed | 1:26.1-15.el8_10.4 | RHSA-2026:90800 |
| Red Hat Enterprise Linux 8 | emacs-common | Fixed | 1:26.1-15.el8_10.4 | RHSA-2026:90800 |
| Red Hat Enterprise Linux 8 | emacs-filesystem | Fixed | 1:26.1-15.el8_10.4 | RHSA-2026:90800 |
| Red Hat Enterprise Linux 8 | emacs-lucid | Fixed | 1:26.1-15.el8_10.4 | RHSA-2026:90800 |
| Red Hat Enterprise Linux 8 | emacs-nox | Fixed | 1:26.1-15.el8_10.4 | RHSA-2026:90800 |
| Red Hat Enterprise Linux 8 | emacs-terminal | Fixed | 1:26.1-15.el8_10.4 | RHSA-2026:90800 |
| Red Hat Enterprise Linux 7 | emacs | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-common | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-el | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-filesystem | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-nox | Fix pending Affected | ||
| Red Hat Enterprise Linux 7 | emacs-terminal | Fix pending Affected | ||
| Red Hat Enterprise Linux 6 | emacs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-el | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | emacs-nox | Will not fix Out of support scope | ||
| AlmaLinux 10 | emacs | Fixed | 1:29.4-17.el10_3 | ALSA-2026:98574 |
| AlmaLinux 10 | emacs-common | Fixed | 1:29.4-17.el10_3 | ALSA-2026:98574 |
| AlmaLinux 10 | emacs-filesystem | Fixed | 1:29.4-14.el10_2.3 | ALSA-2026:98574 |
| AlmaLinux 10 | emacs-lucid | Fixed | 1:29.4-17.el10_3 | ALSA-2026:98574 |
| AlmaLinux 10 | emacs-nw | Fixed | 1:29.4-17.el10_3 | ALSA-2026:98574 |
| AlmaLinux 9 | emacs | Fixed | 1:27.2-18.el9_8.3 | ALSA-2026:99160 |
| AlmaLinux 9 | emacs-common | Fixed | 1:27.2-18.el9_9.1 | ALSA-2026:85245 |
| AlmaLinux 9 | emacs-filesystem | Fixed | 1:27.2-18.el9_8.3 | ALSA-2026:99160 |
| AlmaLinux 9 | emacs-lucid | Fixed | 1:27.2-18.el9_9.1 | ALSA-2026:85245 |
| AlmaLinux 9 | emacs-nox | Fixed | 1:27.2-18.el9_8.3 | ALSA-2026:99160 |
| AlmaLinux 8 | emacs | Fixed | 1:26.1-15.el8_10.4 | ALSA-2026:90800 |
| AlmaLinux 8 | emacs-common | Fixed | 1:26.1-15.el8_10.4 | ALSA-2026:90800 |
| AlmaLinux 8 | emacs-filesystem | Fixed | 1:26.1-15.el8_10.4 | ALSA-2026:90800 |
| AlmaLinux 8 | emacs-lucid | Fixed | 1:26.1-15.el8_10.4 | ALSA-2026:90800 |
| AlmaLinux 8 | emacs-nox | Fixed | 1:26.1-15.el8_10.4 | ALSA-2026:90800 |
| AlmaLinux 8 | emacs-terminal | Fixed | 1:26.1-15.el8_10.4 | ALSA-2026:90800 |
| Rocky Linux 10 | emacs | Fixed | 1:29.4-17.el10_3 | RLSA-2026:84591 |
| Rocky Linux 10 | emacs-common | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 10 | emacs-filesystem | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 10 | emacs-lucid | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 10 | emacs-nw | Fixed | 1:29.4-17.el10_3 | RLSA-2026:98574 |
| Rocky Linux 9 | emacs | Fixed | 1:27.2-18.el9_9.1 | RLSA-2026:99160 |
| Rocky Linux 9 | emacs-common | Fixed | 1:27.2-18.el9_9.1 | RLSA-2026:99160 |
| Rocky Linux 9 | emacs-filesystem | Fixed | 1:27.2-18.el9_9.1 | RLSA-2026:99160 |
| Rocky Linux 9 | emacs-lucid | Fixed | 1:27.2-18.el9_9.1 | RLSA-2026:99160 |
| Rocky Linux 9 | emacs-nox | Fixed | 1:27.2-18.el9_9.1 | RLSA-2026:99160 |
| Rocky Linux 8 | emacs | Fixed | 1:26.1-15.el8_10.4 | RLSA-2026:90800 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- GNU Emacs: affected: before 31.2; fixed in
31.2 - Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Workaround: To mitigate this issue, users should avoid opening or editing untrusted text files with Emacs. Exercise caution when handling files from unknown or suspicious sources, as interacting with them can lead to arbitrary code execution.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:84591 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:85245 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:90800 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:98574 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:99160 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:84591
- https://access.redhat.com/errata/RHSA-2026:85245
- https://access.redhat.com/errata/RHSA-2026:90800
- https://access.redhat.com/errata/RHSA-2026:98574
- https://access.redhat.com/errata/RHSA-2026:99160
- https://access.redhat.com/security/cve/CVE-2026-96442
- https://bugzilla.redhat.com/show_bug.cgi?id=2537347
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.