- State
- Published
- Severity
- 7.8 High
- Published
- Nov 18, 2026
- Updated
- Nov 18, 2026
- Reserved
- Nov 18, 2026
Description
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.)
| Product | Versions |
|---|---|
| Emacs GNU | 31.1 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.8 High | mitre |
Weaknesses
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
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.