CVE-2026-79992

Emacs: emacs: command injection via crafted filenames in tramp

Published Aug 25, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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 available
History
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10.3
References
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8 cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/o:redhat:enterprise_linux:8::baseos
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
References
Type Values Removed Values Added
Title Emacs: local shell command injection through the user field in emacs tramp Emacs: emacs: command injection via crafted filenames in tramp
Type Values Removed Values Added
Metrics ssvc

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

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

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 11, 2026, 12:53 PM
Reserved
Aug 25, 2026, 4:39 PM
Status
Awaiting Analysis
Published
Aug 25, 2026, 6:18 PM
Modified
Nov 11, 2026, 1:17 PM
Severity
Important
Public date
Aug 21, 2026, 12:00 AM