CVE-2026-131959

high
EUVD alias: EUVD-2026-128466
Assigned by CNA: mitre
Published 2026-11-18 · Modified 2026-11-18
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4 NEW
—
not yet in upstream
VIR risk
7.8

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

Predictions

Exploit likelihood
75%
Patch ETA
—

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

Mitigation details

Source: Debian Security Tracker · View original ↗ · DFSG

CVE-2026-131959 NameCVE-2026-131959 DescriptionGNU Emacs 31.1 contains a code injection vulnerability in its handling ... SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) Vulnerable and fixed packages The table below lists information on source packages. Source…

CVE-2026-131959

NameCVE-2026-131959
DescriptionGNU Emacs 31.1 contains a code injection vulnerability in its handling ...
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
emacs (PTS)bookworm, bookworm (security)1:28.2+1-15+deb12u4fixed
trixie (security), trixie1:30.1+1-6+deb13u1fixed
forky, sid1:30.2+1-11fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
emacssource(unstable)(not affected)

Notes

- emacs <not-affected> (Vulnerable code introduced later)
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=82213
https://www.openwall.com/lists/oss-security/2026/11/11/7
https://x3r0day.me/blog/emacs-dir-locals-code-execution/
Fixed by: https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221

Home - Debian Security - Source (Git)

Apply commands

text fix
Notes
- emacs <not-affected> (Vulnerable code introduced later)https://debbugs.gnu.org/cgi/bugreport.cgi?bug=82213https://www.openwall.com/lists/oss-security/2026/11/11/7https://x3r0day.me/blog/emacs-dir-locals-code-execution/Fixed by: https://cgit.git.savannah.gnu.org/cgit/emacs.git/commit/?id=205ae0b0583dbfe09e258164adbc49e130645221

OS impact

debian Debian Fixed 4 releases
VersionPackageStatusFixed in
trixie emacs Not affected —
sid emacs Not affected —
forky emacs Not affected —
bookworm emacs Not affected —

Application impact

VendorProductVersionsFixed
gnuemacs31.1

References

CWEs

CWE-829

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.