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, executing arbitrary Emacs Lisp with the privileges of the Emacs process. (Emacs 30.2 is unaffected.)
Configurations

No configuration.

History

18 Nov 2026, 08:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-18 08:17

Updated : 2026-11-18 16:18


NVD link : CVE-2026-131959

Mitre link : CVE-2026-131959

CVE.ORG link : CVE-2026-131959


JSON object : View

Products Affected

No product.

CWE
CWE-829

Inclusion of Functionality from Untrusted Control Sphere