CVE Professor
›
Back
CVE-2026-131959

CVE-2026-131959 — GNU Emacs (31.1) — CWE-829

HIGH CVSS 7.8 CVE.org

CVE-2026-131959 is a HIGH severity security vulnerability (CWE-829) (CVSS 7.8/10) affecting GNU Emacs (31.1). Technical vector analysis shows that an attacker can exploit this flaw via local access (AV:L) without authentication (PR:N) requiring user interaction, resulting in complete compromise of system confidentiality and integrity (C:H/I:H).

📄 Official NVD / MITRE Original Record Text

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

Published 18.11.2026
ISO Date 2026-11-18
CVSS Version v3.1
Source CVE.org
CVSS v3.1 Vector Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack Vector Local AV:L
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction Required UI:R
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation
🤖 Generating Deep AI Security Analysis…
Analyzing CVSS vector & CWE weakness structure…

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-131959
CVSS 7.8/10 · HIGH · 18.11.2026
CWE: CWE-829
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🎯 WHAT IS THIS VULNERABILITY?
Summary: 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.)
Affected: GNU:Emacs

⚡ ATTACK CHAIN
Local/physical access | no authentication required | user interaction required | low complexity.

🌍 REAL WORLD IMPACT
All confidential data readable/stealable; data can be modified or deleted; service can be completely taken down.

🛡️ REMEDIATION
→ Apply vendor security update for GNU:Emacs.
→ Add WAF rule, create IDS alert for anomalous traffic.

⚠️ URGENCY
⚠️ Planned maintenance (2 weeks).

────────────────────────────────────────
[Kural Tabanlı Otomatik Güvenlik Analizi]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="GNU Emacs"
CVSS Score
7.8 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-829
Affected Products (1)
GNU:Emacs (31.1)
Related CVEs
9.4
CVE-2026-127143
LMS (Lan Management System) is vulnerable to privilege escalation in the lmsd daemon. The daemon loads the li
0.0
CVE-2026-101892
LibreOffice documents in ODF format can contain form controls, such as buttons and text fields, and each contr
0.0
CVE-2026-104007
LibreOffice can connect to databases through JDBC drivers written in Java. A spreadsheet can use a database as
0.0
CVE-2026-104920
LibreOffice Calc can link a cell range to an external data source, and the link is saved in the document. A Ja
8.8
CVE-2026-118225
Inclusion of functionality from untrusted control sphere in Windows Advanced Rasterization Platform allows an
7.8
CVE-2026-113767
Inclusion of functionality from untrusted control sphere in Windows COM+ Event System Service allows an author