cve.bz

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

7.8 highEPSS 0.2%Fix available

High (7.8). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-09-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 1:29.4-14.el10_2.3
  • Red Hat Red Hat Enterprise Linux 10: fixed in 1:29.4-17.el10_3
  • Red Hat Red Hat Enterprise Linux 8: fixed in 1:26.1-15.el8_10.4
  • Red Hat Red Hat Enterprise Linux 9: fixed in 1:27.2-18.el9_8.3
  • Red Hat Red Hat Enterprise Linux 9: fixed in 1:27.2-18.el9_9.1
  • Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-96442 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-96442?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-96442?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-96442 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • gnu emacs:gnu emacs
  • red hat:red hat enterprise linux 10
  • red hat:red hat enterprise linux 6
  • red hat:red hat enterprise linux 7
  • red hat:red hat enterprise linux 8
  • red hat:red hat enterprise linux 9

Versions

From the CNA's record in the CVE List.

ProductAffected
GNU Emacsbefore 31.2

Fixed in

ProductFixed in
Red Hat Enterprise Linux 101:29.4-14.el10_2.3
Red Hat Enterprise Linux 101:29.4-17.el10_3
Red Hat Enterprise Linux 81:26.1-15.el8_10.4
Red Hat Enterprise Linux 91:27.2-18.el9_8.3
Red Hat Enterprise Linux 91:27.2-18.el9_9.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14emacsno fix listedDEBIAN-CVE-2026-96442
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 morexemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2026-96442
Ubuntu26.10emacs, xemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2026-96442
UbuntuPro:16.04:LTSemacs24no fix listedUBUNTU-CVE-2026-96442
UbuntuPro:18.04:LTSemacs25no fix listedUBUNTU-CVE-2026-96442
UbuntuPro:20.04:LTS, Pro:22.04:LTS, Pro:24.04:LTS and 1 moreemacsno fix listedUBUNTU-CVE-2026-96442
Red Hatenterprise_linux:8::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:26.1-15.el8_10.4RHSA-2026:90800
Red Hatenterprise_linux:8::baseosemacs, emacs-filesystem1:26.1-15.el8_10.4RHSA-2026:90800
Red Hatenterprise_linux:9::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:27.2-18.el9_8.3RHSA-2026:85245
Red Hatenterprise_linux:9::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:27.2-18.el9_9.1RHSA-2026:99160
Red Hatenterprise_linux:10.2emacs, emacs-nw, emacs-lucid and 8 more1:29.4-14.el10_2.3RHSA-2026:84591
Red Hatenterprise_linux:10.3emacs, emacs-nw, emacs-lucid and 8 more1:29.4-17.el10_3RHSA-2026:98574
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 moreemacs27.2-150400.3.34.1SUSE-SU-2026:4594-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0emacs30.2-160000.4.1SUSE-SU-2026:23949-1
openSUSELeap 16.0emacs30.2-160000.4.1openSUSE-SU-2026:21974-1
openSUSETumbleweedemacs31.1-4.1openSUSE-SU-2026:11889-1
AlmaLinux8emacs, emacs-nox, emacs-lucid and 3 more1:26.1-15.el8_10.4ALSA-2026:90800
AlmaLinux9emacs, emacs-nox, emacs-lucid and 2 more1:27.2-18.el9_8.3ALSA-2026:85245
AlmaLinux9emacs, emacs-nox, emacs-lucid and 2 more1:27.2-18.el9_9.1ALSA-2026:99160
AlmaLinux10emacs-filesystem1:29.4-14.el10_2.3ALSA-2026:84591
Rocky Linux8emacs1:26.1-15.el8_10.4RLSA-2026:90800
Rocky Linux9emacs1:27.2-18.el9_8.3RLSA-2026:85245
Rocky Linux9emacs, emacs-nox, emacs-lucid and 7 more1:27.2-18.el9_9.1RLSA-2026:99160
Rocky Linux10emacs1:29.4-14.el10_2.3RLSA-2026:84591
Rocky Linux10emacs, emacs-nw, emacs-lucid and 7 more1:29.4-17.el10_3RLSA-2026:98574
Azure Linux3emacs29.4-7AZL-103532

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in Emacs allows arbitrary code execution due to an incomplete fix for CVE-2024-53920. It affects Red Hat products when users view or edit untrusted text files. Exploitation requires user interaction with a specially crafted file, which limits the attack vector.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10emacs-1:29.4-14.el10_2.3Fixed 2026-10-19RHSA-2026:84591
Red Hat Enterprise Linux 10emacs-1:29.4-17.el10_3Fixed 2026-11-11RHSA-2026:98574
Red Hat Enterprise Linux 8emacs-1:26.1-15.el8_10.4Fixed 2026-10-27RHSA-2026:90800
Red Hat Enterprise Linux 9emacs-1:27.2-18.el9_8.3Fixed 2026-10-19RHSA-2026:85245
Red Hat Enterprise Linux 6emacsOut of support scope
Red Hat Enterprise Linux 7emacsAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-96442.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON