Emacs: emacs: arbitrary code execution in flymake mode
GNU Emacs · Red Hat Enterprise Linux 10 · Red Hat Enterprise Linux 8 · Red Hat Enterprise Linux 9
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| GNU Emacs GNU Emacs |
| No fix yet |
| Red Hat Red Hat Enterprise Linux 10 | — |
|
| Red Hat Red Hat Enterprise Linux 10 | — |
|
| Red Hat Red Hat Enterprise Linux 8 | — |
|
| Red Hat Red Hat Enterprise Linux 8 | — |
|
| Red Hat Red Hat Enterprise Linux 9 | — |
|
| Red Hat Red Hat Enterprise Linux 9 | — |
|
| Red Hat Red Hat Enterprise Linux 6 | — | No fix yet |
| Red Hat Red Hat Enterprise Linux 7 | — | No fix yet |
Original 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.
From the CVE record · redhat
References
- access.redhat.com/errata/RHSA-2026:84591
- access.redhat.com/errata/RHSA-2026:85245
- access.redhat.com/errata/RHSA-2026:90800
- access.redhat.com/errata/RHSA-2026:98574
- access.redhat.com/errata/RHSA-2026:99160
- access.redhat.com/security/cve/CVE-2026-96442
- bugzilla.redhat.com/show_bug.cgi?id=2537347
- github.com/emacs-mirror/emacs/commit/135e6f63f08fee3d374fa1a5187bce941a2d3e3c
- github.com/emacs-mirror/emacs/commit/abc802ee2eb0b1663349ddf22a461f8e54a383fb
- openwall.com/lists/oss-security/2026/09/14/1
- access.redhat.com/downloads/content/package-browser
- git.savannah.gnu.org/cgit/emacs.git