GNU Emacsに任意のコードを実行される脆弱性、31.1が対象
Summary
GNU Emacs 31.1には、ディレクトリローカル変数の処理に任意コードを実行される脆弱性があります。細工された.dir-locals.elを含むディレクトリのファイルを開くと、Emacsのプロセスの権限でEmacs Lispが実行されるおそれがあります。Emacs 30.2は影響を受けないと案内されています。31.1を使っている場合は、最新の情報を確認してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
GNU Emacs 31.1には、ディレクトリローカル変数の処理に任意コードを実行される脆弱性があります。細工された.dir-locals.elを含むディレクトリのファイルを開くと、Emacsのプロセスの権限でEmacs Lispが実行されるおそれがあります。Emacs 30.2は影響を受けないと案内されています。31.1を使っている場合は、最新の情報を確認してください。
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Ubuntu UBUNTU-CVE-2026-131959 xemacs21-packages, xemacs21, emacs25 +2 more No fixed version in this record
Original description The description as published by the source.
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.)
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory x3r0day.github.io
- advisory github.com
- advisory nvd.nist.gov
- package git.savannah.gnu.org
- REDHAT Red Hat
- web openwall.com
- web cgit.git.savannah.gnu.org
- web debbugs.gnu.org
- web github.com