CVE-2026-131959
High 7.8No known exploitationFix status unknownTitle not yet published
Record last updated
CVSS score
7.8
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
0.1%
Higher than 3% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
None
Not in the KEV catalog
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.)
Weakness: CWE-829
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- Do not open files in untrusted directories that contain a .dir-locals.el. Setting enable-dir-local-variables to nil disables directory-local variables.
- Vendor guidance
- No vendor link on record
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| GNU | Emacs | 31.1 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by mitre
Source: CVE Program (opens in a new tab)
Vendor guidance and references
- https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221 (opens in a new tab)
- https://debbugs.gnu.org/82213 (opens in a new tab)
- https://www.openwall.com/lists/oss-security/2026/11/11/7 (opens in a new tab)
- https://x3r0day.github.io/ (opens in a new tab)third-party-advisory