UBUNTU-CVE-2026-131959
Dashboard / Vulnerabilities / UBUNTU-CVE-2026-131959
Summary:
Details: 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.)
References: https://ubuntu.com/security/CVE-2026-131959, https://www.cve.org/CVERecord?id=CVE-2026-131959, https://debbugs.gnu.org/cgi/bugreport.cgi?bug=82213, https://www.openwall.com/lists/oss-security/2026/11/11/7, https://x3r0day.me/blog/emacs-dir-locals-code-execution/, https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221, https://debbugs.gnu.org/82213, https://x3r0day.github.io
Affected packages
Package
Name: emacs24
Purl: pkg:deb/ubuntu/emacs24?arch=source&distro=esm-infra%2Fxenial
Affected ranges
Type: ECOSYSTEM
Events:
