# CVE-2026-131959

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-18 · Modified: 2026-11-18
- Aliases: UBUNTU-CVE-2026-131959, openSUSE-SU-2026:12706-1
- Record: https://cvemate.com/vulnerability/CVE-2026-131959 · JSON: https://cvemate.com/vulnerability/CVE-2026-131959/json

## Description

```text
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.)
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.176%, percentile 7.404%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- ubuntu emacs (Ubuntu): All versions (No fix recorded)
- ubuntu emacs24 (Ubuntu): All versions (No fix recorded)
- ubuntu emacs25 (Ubuntu): All versions (No fix recorded)
- ubuntu xemacs21 (Ubuntu): All versions (No fix recorded)
- ubuntu xemacs21-packages (Ubuntu): All versions (No fix recorded)
- gnu emacs: 31.1
- opensuse emacs&distro=openSUSE Tumbleweed (openSUSE): \< 31.1-8.1

## References

- <https://www.openwall.com/lists/oss-security/2026/11/11/7>
- <https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221>
- <https://x3r0day.github.io>
- <https://debbugs.gnu.org/82213>
- <https://ubuntu.com/security/CVE-2026-131959>
- <https://www.cve.org/CVERecord?id=CVE-2026-131959>
- <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=82213>
- <https://x3r0day.me/blog/emacs-dir-locals-code-execution/>
- <https://www.suse.com/security/cve/CVE-2026-131959>

---

Data as of 2026-12-05T03:02:51.720Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
