Cloudanix VulnDB

CVE-2026-79992

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Aug 25, 2026

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A local user can trick the Emacs file-access feature into running attacker-chosen commands on the computer, giving that user full control of the machine.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Remote Code Execution
Component
Application
Class
Command Injection
Remediation
Other
Effort
Other
Patch risk
Other

What it actually does

TRAMP concatenates unsanitized login arguments derived from filenames and passes them directly to a local shell, enabling arbitrary command injection and code execution in the context of the invoking user.

Why it matters to the business

A local user can gain full control over the affected system, leading to data theft, persistence, or lateral movement with minimal effort; the absence of a published fix 63 days after disclosure increases exposure for organizations relying on Emacs for remote file access.

How an attack unfolds

An attacker on the same host crafts a filename containing shell metacharacters, causes TRAMP to process that filename during login argument construction, and the resulting unsanitized string is executed by the local shell, achieving arbitrary code execution without authentication or user interaction.

How to fix it

Upgrade Emacs to the first patched release that sanitizes TRAMP login arguments; until then restrict use of TRAMP on multi-user systems and avoid opening untrusted directories.

How to confirm the fix worked

Confirm the installed Emacs version is newer than the vulnerable release; attempt to reproduce the injection with a test filename containing shell metacharacters in a controlled environment and verify the commands are rejected.

Typical attack path

  1. Place a maliciously crafted filename in a location TRAMP will process
  2. Trigger TRAMP to expand or connect using that filename as part of login arguments
  3. Unsanitized arguments reach the local shell and execute attacker-controlled commands
  4. Attacker gains code execution under the privileges of the Emacs process

How to detect it

Search process execution logs and shell history for Emacs or tramp-sh invocations that contain unusual filenames or shell metacharacters; correlate with file-creation events in directories accessed via TRAMP.

What your security team should do

  • Monitor upstream Emacs releases and package repositories for the availability of a fixed version
  • Apply the update organization-wide as soon as it is released
  • Temporarily disable or restrict TRAMP usage on shared systems until patched
  • Review logs for unexpected shell activity originating from Emacs processes

The record

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.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities