CVE-2026-131959
CVSS Score
7.8
EPSS Score
0.2%
EPSS Percentile
10th
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.)
| CWE | CWE-829 |
| Vendor | gnu |
| Product | emacs |
| Published | Nov 18, 2026 |
| Last Updated | Nov 18, 2026 |
Stay Ahead of the Next One
Get instant alerts for gnu emacs
Be the first to know when new high vulnerabilities affecting gnu emacs are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
GNU / Emacs
31.1