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.
Published: 2026-10-11
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Apply Patch
AI Analysis

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.

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

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

History

Thu, 15 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 14 Oct 2026 00:30:00 +0000

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


Sun, 11 Oct 2026 22:45:00 +0000

Type Values Removed Values Added
Title OS Command Injection in Emacs TRAMP via Filename

Sun, 11 Oct 2026 20:15:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-15T18:08:59.704Z

Reserved: 2026-10-11T20:11:10.046Z

Link: CVE-2026-108976

cve-icon Vulnrichment

Updated: 2026-10-15T16:18:45.468Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-11T21:16:43.580

Modified: 2026-10-16T17:25:57.940

Link: CVE-2026-108976

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-11T20:11:10Z

Links: CVE-2026-108976 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-11T22:30:18Z

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs