CVEfocus › CVE database › CVE-2026-96442

CVE-2026-96442Emacs: emacs: arbitrary code execution in flymake mode

CVSS 7.8 HighEPSS 0.2% (higher than 7% of CVEs)Published 2026-09-23Updated 2026-11-12Assigner: redhat

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.

CWE-94

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

43Fixed
24Fix pending
6Under investigation
4Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10emacsFix pendingUBUNTU-CVE-2026-96442
Ubuntu 26.10xemacs21Fix pendingUBUNTU-CVE-2026-96442
Ubuntu 26.10xemacs21-packagesFix pendingUBUNTU-CVE-2026-96442
Ubuntu 26.04emacsFix pendingUBUNTU-CVE-2026-96442
Ubuntu 26.04xemacs21Under investigationUBUNTU-CVE-2026-96442
Ubuntu 26.04xemacs21-packagesUnder investigationUBUNTU-CVE-2026-96442
Ubuntu 24.04emacsFix pendingUBUNTU-CVE-2026-96442
Ubuntu 24.04xemacs21Under investigationUBUNTU-CVE-2026-96442
Ubuntu 24.04xemacs21-packagesUnder investigationUBUNTU-CVE-2026-96442
Ubuntu 22.04emacsFix pendingUBUNTU-CVE-2026-96442
Ubuntu 22.04xemacs21Under investigationUBUNTU-CVE-2026-96442
Ubuntu 22.04xemacs21-packagesUnder investigationUBUNTU-CVE-2026-96442
Ubuntu 20.04emacsFix pendingUBUNTU-CVE-2026-96442
Ubuntu 20.04xemacs21Fix pendingUBUNTU-CVE-2026-96442
Ubuntu 20.04xemacs21-packagesFix pendingUBUNTU-CVE-2026-96442
Ubuntu 18.04emacs25Fix pendingUBUNTU-CVE-2026-96442
Ubuntu 18.04xemacs21Fix pendingUBUNTU-CVE-2026-96442
Ubuntu 18.04xemacs21-packagesFix pendingUBUNTU-CVE-2026-96442
Ubuntu 16.04emacs24Fix pendingUBUNTU-CVE-2026-96442
Ubuntu 16.04xemacs21Fix pendingUBUNTU-CVE-2026-96442
Ubuntu 16.04xemacs21-packagesFix pendingUBUNTU-CVE-2026-96442
Debian 14emacsFix pendingDEBIAN-CVE-2026-96442
Debian 13emacsFix pendingDEBIAN-CVE-2026-96442
Debian 12emacsFix pendingDEBIAN-CVE-2026-96442
Red Hat Enterprise Linux 10emacsFixed1:29.4-14.el10_2.3RHSA-2026:98574
Red Hat Enterprise Linux 10emacs-commonFixed1:29.4-14.el10_2.3RHSA-2026:98574
Red Hat Enterprise Linux 10emacs-filesystemFixed1:29.4-17.el10_3RHSA-2026:84591
Red Hat Enterprise Linux 10emacs-lucidFixed1:29.4-17.el10_3RHSA-2026:84591
Red Hat Enterprise Linux 10emacs-nwFixed1:29.4-14.el10_2.3RHSA-2026:98574
Red Hat Enterprise Linux 9emacsFixed1:27.2-18.el9_9.1RHSA-2026:85245
Red Hat Enterprise Linux 9emacs-commonFixed1:27.2-18.el9_8.3RHSA-2026:99160
Red Hat Enterprise Linux 9emacs-filesystemFixed1:27.2-18.el9_9.1RHSA-2026:85245
Red Hat Enterprise Linux 9emacs-lucidFixed1:27.2-18.el9_9.1RHSA-2026:85245
Red Hat Enterprise Linux 9emacs-noxFixed1:27.2-18.el9_9.1RHSA-2026:85245
Red Hat Enterprise Linux 8emacsFixed1:26.1-15.el8_10.4RHSA-2026:90800
Red Hat Enterprise Linux 8emacs-commonFixed1:26.1-15.el8_10.4RHSA-2026:90800
Red Hat Enterprise Linux 8emacs-filesystemFixed1:26.1-15.el8_10.4RHSA-2026:90800
Red Hat Enterprise Linux 8emacs-lucidFixed1:26.1-15.el8_10.4RHSA-2026:90800
Red Hat Enterprise Linux 8emacs-noxFixed1:26.1-15.el8_10.4RHSA-2026:90800
Red Hat Enterprise Linux 8emacs-terminalFixed1:26.1-15.el8_10.4RHSA-2026:90800
Red Hat Enterprise Linux 7emacsFix pending
Affected
Red Hat Enterprise Linux 7emacs-commonFix pending
Affected
Red Hat Enterprise Linux 7emacs-elFix pending
Affected
Red Hat Enterprise Linux 7emacs-filesystemFix pending
Affected
Red Hat Enterprise Linux 7emacs-noxFix pending
Affected
Red Hat Enterprise Linux 7emacs-terminalFix pending
Affected
Red Hat Enterprise Linux 6emacsWill not fix
Out of support scope
Red Hat Enterprise Linux 6emacs-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6emacs-elWill not fix
Out of support scope
Red Hat Enterprise Linux 6emacs-noxWill not fix
Out of support scope
AlmaLinux 10emacsFixed1:29.4-17.el10_3ALSA-2026:98574
AlmaLinux 10emacs-commonFixed1:29.4-17.el10_3ALSA-2026:98574
AlmaLinux 10emacs-filesystemFixed1:29.4-14.el10_2.3ALSA-2026:98574
AlmaLinux 10emacs-lucidFixed1:29.4-17.el10_3ALSA-2026:98574
AlmaLinux 10emacs-nwFixed1:29.4-17.el10_3ALSA-2026:98574
AlmaLinux 9emacsFixed1:27.2-18.el9_8.3ALSA-2026:99160
AlmaLinux 9emacs-commonFixed1:27.2-18.el9_9.1ALSA-2026:85245
AlmaLinux 9emacs-filesystemFixed1:27.2-18.el9_8.3ALSA-2026:99160
AlmaLinux 9emacs-lucidFixed1:27.2-18.el9_9.1ALSA-2026:85245
AlmaLinux 9emacs-noxFixed1:27.2-18.el9_8.3ALSA-2026:99160
AlmaLinux 8emacsFixed1:26.1-15.el8_10.4ALSA-2026:90800
AlmaLinux 8emacs-commonFixed1:26.1-15.el8_10.4ALSA-2026:90800
AlmaLinux 8emacs-filesystemFixed1:26.1-15.el8_10.4ALSA-2026:90800
AlmaLinux 8emacs-lucidFixed1:26.1-15.el8_10.4ALSA-2026:90800
AlmaLinux 8emacs-noxFixed1:26.1-15.el8_10.4ALSA-2026:90800
AlmaLinux 8emacs-terminalFixed1:26.1-15.el8_10.4ALSA-2026:90800
Rocky Linux 10emacsFixed1:29.4-17.el10_3RLSA-2026:84591
Rocky Linux 10emacs-commonFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 10emacs-filesystemFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 10emacs-lucidFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 10emacs-nwFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 9emacsFixed1:27.2-18.el9_9.1RLSA-2026:99160
Rocky Linux 9emacs-commonFixed1:27.2-18.el9_9.1RLSA-2026:99160
Rocky Linux 9emacs-filesystemFixed1:27.2-18.el9_9.1RLSA-2026:99160
Rocky Linux 9emacs-lucidFixed1:27.2-18.el9_9.1RLSA-2026:99160
Rocky Linux 9emacs-noxFixed1:27.2-18.el9_9.1RLSA-2026:99160
Rocky Linux 8emacsFixed1:26.1-15.el8_10.4RLSA-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.

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:

References

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.