Description
A flaw was found in Emacs TRAMP. A local attacker could exploit this vulnerability by processing maliciously crafted filenames. This occurs because TRAMP concatenates login arguments without proper sanitization, which are then passed to a local shell. Successful exploitation could lead to arbitrary code execution.
Published: 2026-08-25
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Local code execution via shell injection
Action: Apply Workaround
AI Analysis

Impact

A flaw in Emacs TRAMP allows a local attacker to trigger arbitrary code execution by processing specially crafted filenames. The vulnerability arises because TRAMP concatenates login arguments without adequate sanitization before passing them to the local shell, a classic example of operating system command injection (CWE‑78). If exploited, an attacker gains the privileges of the user running Emacs, potentially compromising the entire system.

Affected Systems

The issue affects Red Hat Enterprise Linux releases 6, 7, 8, 9 and 10 when they run Emacs with TRAMP enabled, as the affected components are included in each distribution. No specific Emacs version is mentioned, so all default installs are potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.8 places the vulnerability in the high range, indicating significant risk when the flaw is exploited. The EPSS score is not available, so the exact likelihood of exploitation cannot be quantified from the CVE data; however, the flaw is known to permit arbitrary code execution. The vulnerability is not currently listed in the CISA Known Exploited Vulnerabilities catalog, suggesting no active exploits have been publicly observed yet.

Generated by OpenCVE AI on August 25, 2026 at 20:52 UTC.

Remediation

Vendor Workaround

Users of Emacs TRAMP should avoid processing untrusted filenames or interacting with remote systems that may contain maliciously crafted file names. This operational control reduces the risk of local shell command injection.


OpenCVE Recommended Actions

  • Users of Emacs TRAMP should avoid processing untrusted filenames or interacting with remote systems that may contain maliciously crafted file names; this operational control reduces the risk of local shell command injection.
  • Check for and install any Emacs releases that address the TRAMP login argument sanitization issue, ensuring the patch is applied as soon as it becomes available from Red Hat or the Emacs project.
  • Review and sanitize any custom TRAMP login arguments or configuration settings that may include user‑supplied values, and consider disabling TRAMP for untrusted hosts until a patched version is deployed.

Generated by OpenCVE AI on August 25, 2026 at 20:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 26 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
References

Wed, 26 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Tue, 25 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 25 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Description A flaw was found in Emacs TRAMP. A local attacker could exploit this vulnerability by processing maliciously crafted filenames. This occurs because TRAMP concatenates login arguments without proper sanitization, which are then passed to a local shell. Successful exploitation could lead to arbitrary code execution.
Title Emacs: local shell command injection through the user field in emacs tramp
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-78
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
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'}


Subscriptions

Redhat Enterprise Linux
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-26T17:56:00.585Z

Reserved: 2026-08-25T16:39:44.534Z

Link: CVE-2026-79992

cve-icon Vulnrichment

Updated: 2026-08-26T17:56:00.585Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-25T18:18:06.973

Modified: 2026-08-28T18:58:27.140

Link: CVE-2026-79992

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-21T00:00:00Z

Links: CVE-2026-79992 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T21:00:04Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')