Skip to content
CORVASEC — Knowledge Defends
Vulnerability Explorer›CVE-2026-131959
VULNERABILITY

CVE-2026-131959

Common Vulnerabilities and Exposures record

HIGH

Summary

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.)

Risk

CVSS
7.8
Severity
HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Timeline

Published
Nov 18, 2026 08:17
Modified
Nov 18, 2026 16:18
Last observed
Nov 18, 2026 12:01

CWE

CWE-829

References