CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HHigh (7.8) in gnu emacs. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExplain CVE-2026-131959 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-131959?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-131959?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-131959 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| GNU Emacs | 31.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Ubuntu | 16.04:LTS, 18.04:LTS, 20.04:LTS and 3 more | xemacs21, xemacs21-packages | no fix listed | UBUNTU-CVE-2026-131959 |
| Ubuntu | 26.10 | emacs, xemacs21, xemacs21-packages | no fix listed | UBUNTU-CVE-2026-131959 |
| Ubuntu | Pro:16.04:LTS | emacs24 | no fix listed | UBUNTU-CVE-2026-131959 |
| Ubuntu | Pro:18.04:LTS | emacs25 | no fix listed | UBUNTU-CVE-2026-131959 |
| Ubuntu | Pro:20.04:LTS, Pro:22.04:LTS, Pro:24.04:LTS and 1 more | emacs | no fix listed | UBUNTU-CVE-2026-131959 |
From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.
Red Hat rates this Important.
To exploit this issue, a user needs to open a file within an untrusted directory, such as a cloned Git repository or extracted archive, that contains a malicious .dir-locals.el file, limiting its exposure and requiring user interaction. However, successful exploitation can allow execution of arbitrary Emacs Lisp code with the privileges of the Emacs process, potentially leading to a system compromise. For these reasons, this vulnerability has been rated with an important severity.
To mitigate this flaw, disable directory-local variable processing in Emacs configuration:
Add the following configuration setting to the user initialization file (`~/.emacs`, `~/.emacs.el`, or `~/.emacs.d/init.el`), or globally across the system in the site initialization file (such as `/etc/emacs/site-start.el`):
```elisp
(setq enable-dir-local-variables nil)
```
Running Emacs instances must be restarted for the configuration change to take effect.
Caveats: Disabling this setting prevents Emacs from automatically loading project-specific and directory-level customization files.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | emacs | Not affected | |
| Red Hat Enterprise Linux 6 | emacs | Not affected | |
| Red Hat Enterprise Linux 7 | emacs | Not affected | |
| Red Hat Enterprise Linux 8 | emacs | Not affected | |
| Red Hat Enterprise Linux 9 | emacs | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-131959.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-829 (13).