P2 · HighCVSS 7.8EPSS 0.2%
CVE-2026-131959
- CVE-2026-131959
- GHSA-5hqm-5j9g-jhcr
- EUVD-2026-128466
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.)
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
GNU Emacs
Affected versions Fixed in 31.1 none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.