CVE-2026-131959: GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables
Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 18 Nov 2026, 10:51 UTC
Thin evidence
One scorer or none| CNA (mitre) | CVSS 3.1 | 7.8 |
|---|
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 18 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| GNUEmacs | Affected
| Fixed in– |
Debiandebian/emacspkg:deb/debian/emacsOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, users should avoid opening files in directories containing untrusted or suspicious .dir-locals.el files to mitigate risk.
Description
GNU Emacs version 31.1 contains a code injection vulnerability related to its handling of directory-local variables. A maliciously crafted .dir-locals.el file can include a (REGEXP FUNCTION t) entry in auto-mode-alist that causes Emacs to execute arbitrary Emacs Lisp code with the privileges of the Emacs process when a matching file is opened. This vulnerability does not affect Emacs 30.2.
References
- nvd.nist.gov/vuln/detail/CVE-2026-131959 (opens in a new tab)
- cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221 (opens in a new tab)
- debbugs.gnu.org/82213 (opens in a new tab)
- openwall.com/lists/oss-security/2026/11/11/7 (opens in a new tab)
- x3r0day.github.io (opens in a new tab)