AI analysis
A code execution vulnerability exists in GNU Emacs versions prior to 31.2. The flaw is triggered when the Flymake mode performs syntax checking using a language backend other than Lisp, causing it to execute arbitrary code from the currently open file. This allows an attacker to achieve arbitrary code execution with the privileges of the user running Emacs by luring them into viewing or editing a malicious file. No public proof-of-concept or exploitation in the wild has been reported at this time. The vulnerability is rated as high severity.
What to do: Upgrade to Emacs version 31.2 or later immediately. If upgrading is not immediately possible, disable Flymake mode or ensure you only open trusted files.
Estimated exposure
—No basis for an estimate.
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Description
A code execution flaw was found in Emacs, affecting versions prior to 31.2. The Flymake mode using language backends other than Lisp would execute arbitrary code from the edited file while performing syntax checking. Viewing or editing untrusted files using Emacs could lead to arbitrary code execution with the privileges of the user running Emacs.