{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-131959","id":"CVE-2026-131959","title":"GNU Emacs code execution via directory-local variables","description":"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.)","descriptionLong":"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.)","published":"2026-11-18T07:34:30.502Z","updated":"2026-11-18T16:45:57.863531779Z","reserved":"2026-11-18T07:34:30.134Z","status":"Received","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"mitre"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"mitre"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"mitre.org"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["GNU Emacs"],"affectedProducts":[{"vendor":"GNU","product":"Emacs","defaultStatus":"unknown","versions":[{"status":"affected","version":"31.1","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-829"],"aliases":[],"references":[{"url":"https://www.openwall.com/lists/oss-security/2026/11/11/7","tags":["web"]},{"url":"https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221","tags":["web"]},{"url":"https://x3r0day.github.io","tags":["third-party-advisory","advisory"]},{"url":"https://debbugs.gnu.org/82213","tags":["web"]},{"url":"https://git.savannah.gnu.org/cgit/emacs.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/131xxx/CVE-2026-131959.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-131959","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00201,"epssPercentile":0.09991,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-131959","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-131959","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-131959","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-131959","ok":true,"note":"scored 2026-11-18"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}