CVE-2026-131959
CVE-2026-131959
- Severity
- high CVSS 7.8 (v3.1)
- Affects
- Emacs · GNU
- Weakness
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
- Published
- 18 November 2026 by mitre
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.)
Our coverage
We have not written about this one. Know why it matters? Send a tip.