3 matches found
CVE-2026-131959
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, executi...
CVE-2026-131959
GNU Emacs 31.1 is vulnerable to a code injection flaw in its handling of directory-local variables. A maliciously crafted .dir-locals.el file can provide a (REGEXP FUNCTION t) entry in the auto-mode-alist . When a matching file is opened, Emacs executes the FUNCTION before it can be validated by ...
Emacs -- Arbitrary code execution via .dir-locals.el
Problem Description Emacs validates the major modes named in the auto-mode-alist of a .dir-locals.el before calling them. Functions in entries of the form REGEXP FUNCTION t were called without this validation. Impact Visiting a file in a directory tree containing a crafted .dir-locals.el can...