{"vuln_id":"CVE-2026-131959","aliases":[],"description":"emacs: .dir-locals.el auto-mode-alist bypass gives code execution on file open","published_at":"2026-11-18T07:34:30Z","modified_at":"2026-11-18T16:18:15.343000Z","first_seen_at":"2026-11-21T19:15:15.263779Z","severity":"high","severity_source":"nvd","cvss_score":7.8,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwe":["CWE-829"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00178,"epss_percentile":0.07466,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-131959"},"matched_alias":null,"items":[{"id":7674,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"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)…","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.)\n\nReferences:\nhttps://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221\nhttps://debbugs.gnu.org/82213\nhttps://www.openwall.com/lists/oss-security/2026/11/11/7\nhttps://x3r0day.github.io","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-131959","published_at":"2026-11-18T08:17:19.593000Z","updated_at":"2026-11-18T16:18:15.343000Z","fetched_at":"2026-11-21T19:15:31.483552Z","severity":"high","cvss_score":7.8,"epss":0.00178,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-131959","vuln_ids":["CVE-2026-131959"],"tags":["CWE-829"],"cluster_id":1138,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/7674","html":"https://vulnwatch.ve1ve2.com/item/7674"}},{"id":1427,"source":{"id":"redhat","name":"Red Hat Security Data API"},"title":"CVE-2026-131959: emacs: .dir-locals.el auto-mode-alist bypass gives code execution on file open","summary":"emacs: .dir-locals.el auto-mode-alist bypass gives code execution on file open","url":"https://access.redhat.com/security/cve/cve-2026-131959","published_at":"2026-11-18T07:34:30Z","updated_at":null,"fetched_at":"2026-11-21T19:15:08.894438Z","severity":"high","cvss_score":7.8,"epss":0.00178,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"redhat","product":null,"vuln_id":"CVE-2026-131959","vuln_ids":["CVE-2026-131959"],"tags":["redhat"],"cluster_id":1138,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/1427","html":"https://vulnwatch.ve1ve2.com/item/1427"}}]}