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 (
ThreatFilter threatfilter.dev
Listen to this summary
(vendor/severity tags below are heuristic) 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.)
More ways to use this
Open on another device
Scan to open this page. Your saved notes and account access are not included.
Java4Shell (CVE-2026-114938): Frequently asked questions about OpenJDK remote code execution vulnerability
Brotli2Shell: Frequently asked questions for Google Brotli decoder vulnerability (CVE-2026-111497)