CVE-2026-131959: gnu emacs
Vulnerability summary
CVE-2026-131959 is a high (CVSS 7.8) vulnerability in gnu emacs. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.4% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 18-11-2026PublishedVulnerability first disclosed.
- 18-11-2026Last modifiedVulnerability information updated.
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.)
CVSS metrics
3 scores · 3 sources · 1 version- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.18%
Chance of exploitation in the next 30 days
Percentile
7%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu5 products
- emacsAll versions (No fix recorded)
- emacs24All versions (No fix recorded)
- emacs25All versions (No fix recorded)
- xemacs21All versions (No fix recorded)
- xemacs21-packagesAll versions (No fix recorded)
Gnu1 product
- emacs31.1
Opensuse1 product
- emacs&distro=openSUSE Tumbleweed< 31.1-8.1
3 vendors · 7 products
References
9 links- debbugs.gnu.org/82213REPORT