CVE-2026-96442

Emacs: emacs: arbitrary code execution in flymake mode

State
Published
Severity
7.8 High
Published
Sep 23, 2026
Updated
Oct 27, 2026
Reserved
Sep 23, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Hredhat

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
GNU EmacsGNU Emacs
  • before 31.2Affected
Red Hat Enterprise Linux 10Red Hat
  • 1:29.4-14.el10_2.3 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
  • 1:26.1-15.el8_10.4 and laterNot affected
Red Hat Enterprise Linux 8Red Hat
  • 1:26.1-15.el8_10.4 and laterNot affected
Red Hat Enterprise Linux 9Red Hat
  • 1:27.2-18.el9_8.3 and laterNot affected
Red Hat Enterprise Linux 6Red Hat
    Red Hat Enterprise Linux 7Red Hat

      References

      Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.