GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables.
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.)
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- GNU
- Product
- Emacs
- CVSS v3.1
- 7.8 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weakness
- CWE-829
- NVD status
- Received
Why it ranks 10 (Routine)
- CVSS v3.1 7.8 high
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.