CVE-2026-79992
High · 7.8CVSS
7.8
EPSS
0.2%
Published
Aug 25, 2026
CISA due date
—
Cloudanix analysis
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
- Place a maliciously crafted filename in a location TRAMP will process
- Trigger TRAMP to expand or connect using that filename as part of login arguments
- Unsanitized arguments reach the local shell and execute attacker-controlled commands
- 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
- CVE-2026-116651 Tanium addressed an unauthorized code execution vulnerability in Threat Response. CWE-78
- CVE-2026-116650 Tanium addressed an unauthorized code execution vulnerability in Threat Response. CWE-78
- CVE-2026-118865 An authenticated OS command injection vulnerability exists in the Offline Download… CWE-78
- CVE-2026-121621 A command injection vulnerability was found in Argo CD Image Updater, where a proxy URL… CWE-78
- CVE-2026-54161 Network UPS Tools is a collection of programs which provide a common interface for… CWE-78
- CVE-2026-121548 Jarun nnn through 5.3 contains an OS command injection vulnerability in plugins/togglex… CWE-78
- CVE-2026-121429 AzuraCast through 0.23.8 contains a command injection vulnerability that allows station… CWE-78
- CVE-2026-119742 Nagios XI before 2026R2 contains an OS command injection vulnerability in the MIB upload… CWE-78