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 FUN...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:16.04:LTSemacs24 |
All versions→ Not listed |
Not listed |
| Ubuntu:16.04:LTSxemacs21 |
All versions→ Not listed |
Not listed |
| Ubuntu:16.04:LTSxemacs21-packages |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSemacs25 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSxemacs21 |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSxemacs21-packages |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSemacs |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSxemacs21 |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSxemacs21-packages |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSxemacs21 |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSxemacs21-packages |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:22.04:LTSemacs |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSxemacs21 |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSxemacs21-packages |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:24.04:LTSemacs |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10emacs |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10xemacs21 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10xemacs21-packages |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSxemacs21 |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSxemacs21-packages |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:26.04:LTSemacs |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.)
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report debbugs.gnu.org
- report openwall.com
- report x3r0day.me
- report cgit.git.savannah.gnu.org
- report debbugs.gnu.org
- report x3r0day.github.io