๐Ÿ” CVE Alert

CVE-2026-131959

HIGH 7.8
CVSS Score
7.8
EPSS Score
0.2%
EPSS Percentile
10th

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

CWE CWE-829
Vendor gnu
Product emacs
Published Nov 18, 2026
Last Updated Nov 18, 2026
Stay Ahead of the Next One

Get instant alerts for gnu emacs

Be the first to know when new high vulnerabilities affecting gnu emacs are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

GNU / Emacs
31.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
openwall.com: https://www.openwall.com/lists/oss-security/2026/11/11/7 cgit.git.savannah.gnu.org: https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221 x3r0day.github.io: https://x3r0day.github.io debbugs.gnu.org: https://debbugs.gnu.org/82213