Skip to content
This page tracks the Ubuntu fix status. The vulnerability itself is described on the main CVE page. View CVE-2026-131959 →
Unrated

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 FUN...

UBUNTU-CVE-2026-131959 First seen on SecPulse

Affected packages

PackageAffected → Fixed
Ubuntu:Pro:16.04:LTSemacs24
All versions→ Not listed
Ubuntu:16.04:LTSxemacs21
All versions→ Not listed
Ubuntu:16.04:LTSxemacs21-packages
All versions→ Not listed
Ubuntu:Pro:18.04:LTSemacs25
All versions→ Not listed
Ubuntu:18.04:LTSxemacs21
All versions→ Not listed
Ubuntu:18.04:LTSxemacs21-packages
All versions→ Not listed
Ubuntu:Pro:20.04:LTSemacs
All versions→ Not listed
Ubuntu:20.04:LTSxemacs21
All versions→ Not listed
Ubuntu:20.04:LTSxemacs21-packages
All versions→ Not listed
Ubuntu:22.04:LTSxemacs21
All versions→ Not listed
Ubuntu:22.04:LTSxemacs21-packages
All versions→ Not listed
Ubuntu:Pro:22.04:LTSemacs
All versions→ Not listed
Ubuntu:24.04:LTSxemacs21
All versions→ Not listed
Ubuntu:24.04:LTSxemacs21-packages
All versions→ Not listed
Ubuntu:Pro:24.04:LTSemacs
All versions→ Not listed
Ubuntu:26.10emacs
All versions→ Not listed
Ubuntu:26.10xemacs21
All versions→ Not listed
Ubuntu:26.10xemacs21-packages
All versions→ Not listed
Ubuntu:26.04:LTSxemacs21
All versions→ Not listed
Ubuntu:26.04:LTSxemacs21-packages
All versions→ Not listed
Ubuntu:Pro:26.04:LTSemacs
All versions→ Not listed

This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.

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: OSV.dev (Open Source Vulnerabilities) OSV

References

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