Software 45307 Published by

GNU Emacs 31.2 RC1 has been announced by maintainer Sean Whitton as the first candidate for the upcoming stable release, marking another milestone less than two months after 31.1 shipped. The primary focus of this cycle is security hardening, addressing critical vulnerabilities like CVE-2026-96269 which allows arbitrary code execution via crafted .dir-locals.el files, alongside fixes for TRAMP command injection flaws. While the RC itself brings minimal changes beyond the security patches and a new autoload-macro mechanism, it builds upon the massive feature set introduced in August, including default terminal mouse support, automatic tree-sitter grammar installation, and a complete overhaul of the vanilla completion system. 



Emacs 31.2 RC1 lands five days after the editor's 50th birthday

GNU Emacs has released its first release candidate for version 31.2. GNU maintainer Sean Whitton announced the build on the info-gnu-emacs mailing list today.

The release arrives less than two months after Emacs 31.1 shipped in August 2026. It also lands just a few days after the editor celebrated its 50th anniversary. The momentum from that milestone hasn't stalled.

Whitton calls this the "first (and hopefully only) release candidate." That phrasing suggests the team is confident enough to ship the final version without another round of testing. If the pretest behaves, you should expect 31.2 to land soon.

Screenshot_from_2025_05_18_12_51_24

The security story

If you're running 31.1 right now, this update isn't optional. The CVE list here is non-trivial.

CVE-2026-96269 is the headline. It allows arbitrary Lisp code execution when opening a file in any directory containing a crafted .dir-locals.el. Emacs didn't validate that the "mode" specified in the file was actually a valid major mode before executing it. Supply a dangerous function name like eval, and you bypass every trust prompt in the editor. Whitton's fix adds a validation path that skips invalid entries.

TRAMP has two entries of its own. CVE-2026-79992 blocks shell metacharacters in Tramp usernames. CVE-2026-108976 closes a follow-up hole that could still allow command injection through crafted filenames processed by TRAMP. The patch also blocks %NAME%-style environment patterns in user and host names on Windows.

Red Hat's advisory also flags CVE-2026-96442 for arbitrary code execution in Flymake mode, alongside unspecified vulnerabilities.

CVE-2026-96269 only affects Emacs 31.1. Versions 30.2 and older are unaffected. No backport is planned for older releases.

The autoload tweak

There's one non-security change worth knowing. Macros can now signal via a new autoload-macro form that the loader should process their expansion rather than copy it verbatim. This is useful for library authors who need to inject code.

The upstream warning on this one is worth reading though. Whitton notes the feature "can introduce security risks in case you're scraping a file you do not trust."

Head here to download the release.