CVE-2026-131959
GNU Emacs 31.1 contains a code injection vulnerability in its handling of directory-local variables.
Auswirkung
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.)
Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer etwas tun, etwa eine Datei oder einen Link öffnen. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Produkte
| Hersteller | Produkt | Betroffene Versionen |
|---|---|---|
| GNU | Emacs | Version 31.1 |
| Microsoft | Emacs | Version 31.1 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- 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://github.com/advisories/GHSA-5hqm-5j9g-jhcr
- https://nvd.nist.gov/vuln/detail/CVE-2026-131959