CVE-2026-108976

emacs: zero-click local command execution via TRAMP

Published Oct 11, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
GNU Emacs before 31.2 (and TRAMP through 2.8.2) allows OS command injection via a filename because tramp-user-regexp has an incomplete list of disallowed inputs. NOTE: this issue exists because of an incomplete fix for CVE-2026-79992.

Analysis

AI-generated

Technical impact

GNU Emacs before version 31.2, along with the TRAMP package up to 2.8.2, is vulnerable to OS command injection triggered by a specially crafted filename. The flaw stems from an incomplete list of disallowed input patterns in the tramp‑user‑regexp filter, enabling an attacker to inject and execute arbitrary commands when Emacs processes the file name. This results in remote code execution, compromising the confidentiality, integrity, and availability of the host system.

Affected Systems

The affected products are GNU Emacs releases older than 31.2 and TRAMP libraries up to version 2.8.2. The vulnerability is present on all platforms supported by Emacs, as it involves filename handling rather than platform‑specific features. No further version narrowing is documented beyond the stated ranges.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, and although no EPSS score is available, the vulnerability is not listed in CISA’s KEV catalog, suggesting no confirmed active exploitation. The flaw is exploitable through unsanitized filename handling; the likely attack vector involves supplying a malicious filename when opening files within Emacs, but the description does not explicitly state the interfaces, so this inference is derived from the generic file handling context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install GNU Emacs 31.2 or newer and a TRAMP version newer than 2.8.2 to include the fix.
  • Verify that your tramp‑user‑regexp configuration contains a comprehensive list of disallowed characters and restore the default if it has been altered.
  • Restrict file operations from untrusted users by tightening Emacs access controls and limiting the use of TRAMP for network files.

Generated by OpenCVE AI on October 11, 2026 at 22:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title OS Command Injection in Emacs TRAMP via Filename emacs: zero-click local command execution via TRAMP
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Title OS Command Injection in Emacs TRAMP via Filename
Type Values Removed Values Added
Description GNU Emacs before 31.2 (and TRAMP through 2.8.2) allows OS command injection via a filename because tramp-user-regexp has an incomplete list of disallowed inputs. NOTE: this issue exists because of an incomplete fix for CVE-2026-79992.
First Time appeared Gnu
Gnu emacs
Weaknesses CWE-184
CPEs cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*
Vendors & Products Gnu
Gnu emacs
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 15, 2026, 6:08 PM
Reserved
Oct 11, 2026, 8:11 PM
Status
Awaiting Analysis
Published
Oct 11, 2026, 9:16 PM
Modified
Oct 16, 2026, 5:25 PM
Severity
Important
Public date
Oct 11, 2026, 8:11 PM