Skip to content
VulniPulse
High7.8Red Hat Linux Updated

CVE-2026-131959: Red Hat .dir-locals.el auto-mode-alist bypass gives code execution on file open

This Red Hat advisory covers CVE-2026-131959.

Open the Red Hat advisory

Key facts

Vendor rating
High, CVSS 7.8
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H · base score 7.8, scored by mitreAttack vector: local. Attack complexity: low. Privileges required: none. User interaction: required. Scope: unchanged. Confidentiality impact: high. Integrity impact: high. Availability impact: high.
Weakness
  • CWE-829 Inclusion of Functionality from Untrusted Control Sphere
EPSS
0.14% chance of exploitation in the next 30 days (3rd percentile). FIRST EPSS, .
CISA SSVC
Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
CISA KEV
Not listed (catalogue checked )
Source published
Listed by VulniPulse

Compiled by VulniPulse from the linked sources. How records are collected and checked.

Related products & platforms

Red Hat LinuxUnclassified

Description

.dir-locals.el auto-mode-alist bypass gives code execution on file open. Red Hat rates this important (CVSS 7.8).

Weakness: CWE-829.

Text from the source record.

How to fix CVE-2026-131959

Vendor guidance

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

All Red Hat Linux advisories

Get an email when Red Hat publishes the next one.

See Red Hat's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.

Alert me about Red Hat