Skip to content
Threat Brief

← All advisories

CVE-2026-131959

High 7.8No known exploitationFix status unknown

Title not yet published

Record last updated

CVSS score

7.8

High on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

0.1%

Higher than 3% of scored CVEs. A prediction, not evidence.

CISA remediation deadline

None

Not in the KEV catalog

Description

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

Weakness: CWE-829

Patching and mitigation

Patch status
Unknown: no source documents a fix
Mitigation
Do not open files in untrusted directories that contain a .dir-locals.el. Setting enable-dir-local-variables to nil disables directory-local variables.
Vendor guidance
No vendor link on record

Affected products

VendorProductAffected versionsFixed inPer
GNUEmacs31.1Not documentedCVE Program

Timeline

  1. Disclosure

    CVE record published by mitre

    Source: CVE Program (opens in a new tab)

Vendor guidance and references