CVE-2026-96442
Emacs: emacs: arbitrary code execution in flymake mode
HIGH 7.8
At a glance
- Source
- NVD
- EPSS
- EPSS 0.20 % · percentile 10 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Awaiting Analysis
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.
Weaknesses (CWE)
- CWE-94 — Improper Control of Generation of Code
References
- https://access.redhat.com/errata/RHSA-2026:84591
- https://access.redhat.com/errata/RHSA-2026:85245
- https://access.redhat.com/errata/RHSA-2026:90800
- https://access.redhat.com/security/cve/CVE-2026-96442
- https://bugzilla.redhat.com/show_bug.cgi?id=2537347
- https://github.com/emacs-mirror/emacs/commit/135e6f63f08fee3d374fa1a5187bce941a2d3e3c
- https://github.com/emacs-mirror/emacs/commit/abc802ee2eb0b1663349ddf22a461f8e54a383fb
- https://www.openwall.com/lists/oss-security/2026/09/14/1
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | redhat |
| CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD · secalert@redhat.com (Secondary) |
European references
- ENISA EUVD · EUVD-2026-85187
- GCVE · GCVE-0-2026-96442
Affected products
| Product | Versions |
|---|---|
| GNU Emacs · GNU Emacs | affected 0 < 31.2 |
| Red Hat · Red Hat Enterprise Linux 10 | unaffected 1:29.4-14.el10_2.3 < * |
| Red Hat · Red Hat Enterprise Linux 8 | unaffected 1:26.1-15.el8_10.4 < * |
| Red Hat · Red Hat Enterprise Linux 8 | unaffected 1:26.1-15.el8_10.4 < * |
| Red Hat · Red Hat Enterprise Linux 9 | unaffected 1:27.2-18.el9_8.3 < * |
| Red Hat · Red Hat Enterprise Linux 6 | |
| Red Hat · Red Hat Enterprise Linux 7 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |