Skip to main content
VulnerabilityPublished

CVE-2026-131959: GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables

Source GCVE Database

0
Compare
Authoritative record:CVE-2026-131959· High 7.8

Not known to be exploited · CVSS 7.8 High.

Data as of 18 Nov 2026, 10:51 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (mitre)CVSS 3.17.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GNUEmacsAffected
  • =31.1
Fixed in–
Debiandebian/emacspkg:deb/debian/emacsOther threatsAffected
  • =31.1
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

Community reviews

Loading reviews…