Emacs Flymake Mode Executes Arbitrary Code From Files Being Edited During Syntax Checking in Versions Before 31.2
Last refreshed2026-11-20
Status: UPDATED
| Advisory ID: CVE-2026-96442
Key Details
CVE
CVE-2026-96442
CVSS Score / Version
7.8 (High) / CVSS v3.1
Updated
2026-10-19
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is local; attack complexity is low; privileges required is none; user interaction is required; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 7, and GNU Emacs GNU Emacs
Classified as
CWE-94 (Improper Control of Generation of Code ('Code Injection'))
Exploitation prediction (EPSS)
0.22% probability of exploitation in the next 30 days (13% percentile) -- FIRST.org's EPSS model.
Affected Products, Subsystems & Sectors
Vendor
Product
Affected Versions
Patch Status
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 7
GNU Emacs
GNU Emacs
Subsystems
OT Supporting Infrastructure
Sectors
Multiple
What to Know
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. (NVD)
What to Do
Monitor Red Hat's and GNU Emacs's web pages for any future patch releases.