CVE-2026-131959: Emacs24 · GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local
Affects emacs24Source GCVE Database
Not known to be exploited · CVSS 7.8 High.
Data as of 24 Nov 2026, 22:29 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 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10emacspkg:deb/ubuntu/emacs?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10xemacs21pkg:deb/ubuntu/xemacs21?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10xemacs21-packagespkg:deb/ubuntu/xemacs21-packages?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSxemacs21pkg:deb/ubuntu/xemacs21?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSxemacs21-packagespkg:deb/ubuntu/xemacs21-packages?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu Pro 26.04 LTSemacspkg:deb/ubuntu/emacs?arch=source&distro=esm-apps/resoluteOther 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 from untrusted sources that might contain malicious .dir-locals.el files.
Description
GNU Emacs 31.1 has 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, causing 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
- ubuntu.com/security/CVE-2026-131959 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-131959 (opens in a new tab)
- debbugs.gnu.org/cgi/bugreport.cgi?bug=82213 (opens in a new tab)
- openwall.com/lists/oss-security/2026/11/11/7 (opens in a new tab)
- x3r0day.me/blog/emacs-dir-locals-code-execution/ (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)
- x3r0day.github.io (opens in a new tab)