2026-11-18 · Canadian Centre for Cyber Security · MEDIUM

Emacs Prior to 31.2 Allows Local Code Execution

60-WORD SECURITY BRIEF

GNU Emacs versions before 31.2 contain a local code execution flaw triggered by malicious .dir-locals.el files. The vulnerability bypasses auto-mode-alist checks, allowing an attacker to run arbitrary code when a user opens a file; no public exploit reported. Users should upgrade to Emacs 31.2 or later, or disable .dir-locals.el processing until a patch is released.