CVE-2026-131959 · GNU / Emacs
CVE-2026-131959
Full advisory details, affected packages, severity context, and original source.
Affected technology
Affected versions and fixes
Version information comes from OSV, NVD, and the CVE vendor record. Each source may describe a different package, release branch, or platform.
GNU / Emacs · custom
CVE vendor record- affected: 31.1 · custom
Fixed releases / commits: Not explicitly provided by this source. Check the vendor guidance.
Repository: https://git.savannah.gnu.org/cgit/emacs.git
Other versions: unknown according to the vendor record.
Advisory overview
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.)
