Skip to content
High 7.8

GNU Emacsに任意のコードを実行される脆弱性、31.1が対象

CVE-2026-131959 First seen on SecPulse

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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details