CVE-2026-131959GNU Emacs
High 7.8
Follow: this CVE · GNU · GNU Emacs We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.1
- 7.8
- EPSS
- —
- Auth required
- Yes
- Published
- Nov 18, 2026
- Updated
- Nov 18, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-829
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables. A crafted .dir-locals.el can supply a (REGEXP FUNCTION t) entry in auto-mode-alist; when a matching file is opened, Emacs calls FUNCTION before set-auto-mode--dir-local-valid-p validates it, executing arbitrary Emacs Lisp with the privileges of the Emacs process. (Emacs 30.2 is unaffected.)
What to do
- Apply the vendor's security update for Emacs.
Affected products
- GNU · Emacs
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- emacs-31.1-8.1 on GA media · SUSE · openSUSE-SU-2026:12706-1 · Nov 27, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.