{"id":"CVE-2026-131959","aliases":[],"title":"GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables. A crafted .dir-locals.el can supply a (","originalDescription":"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.)","severity":{"cvss":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","label":"high"},"exploitation":{"kev":null,"epss":{"score":0.00176,"percentile":0.0739},"exploitDb":null},"affected":[],"references":[{"url":"https://www.openwall.com/lists/oss-security/2026/11/11/7","type":"other"},{"url":"https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221","type":"other"},{"url":"https://x3r0day.github.io","type":"third-party-advisory"},{"url":"https://debbugs.gnu.org/82213","type":"other"},{"url":"https://git.savannah.gnu.org/cgit/emacs.git","type":"package"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/131xxx/CVE-2026-131959.json","type":"advisory"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-131959","type":"advisory"}],"sources":[{"name":"nvd","at":"2026-11-18T16:30:56.879Z","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-131959","license":"NVD terms of use","firstSeenAt":"2026-11-18T08:48:41.083Z"},{"name":"osv","at":"2026-11-30T07:29:42.835Z","url":"https://osv.dev/vulnerability/CVE-2026-131959","license":"CC-BY 4.0","firstSeenAt":"2026-11-18T11:34:29.359Z"},{"name":"cvelistV5","at":"2026-11-19T21:46:33.246Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-131959","license":"CVE Terms of Use","firstSeenAt":"2026-11-18T07:40:10.207Z"}],"firstSeenAt":"2026-11-18T07:40:10.207Z","publishedAt":"2026-11-18T07:34:30.502Z","modifiedAt":"2026-11-30T02:46:04.141Z"}