Skip to content
NewA calmer, faster ZeroHour
Vulnerability2 · 1 read

CVE-2026-79992

Shell argument injection in GNU Emacs TRAMP (incomplete fix of CVE-2024-53920)

CVSS 3.1
7.8 high
EPSS
<1%p3
Published
·
Modified
Analyze CVE-2026-79992 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

GNU Emacs's TRAMP remote-file-editing layer concatenates login arguments without proper sanitization before passing them to a local shell, so shell metacharacters smuggled in via maliciously crafted (remote) filenames can execute arbitrary commands (CWE-78). A local attacker with a low-privilege account can plant or trick a victim into opening such a crafted filename, and successful exploitation yields arbitrary code execution running as the Emacs user (CVSS 7.8, AV:L/PR:L). TRAMP ships bundled with Emacs, so Emacs installations are the population at risk, though the advisory does not specify affected version ranges; the flaw stems from an incomplete fix for the earlier CVE-2024-53920. Near-term exploitation appears unlikely: EPSS is 0.1% (3rd percentile), there is no public PoC, and the flaw is not in the CISA KEV catalog.

What to do: Upgrade Emacs and the TRAMP package to a release containing the fix for CVE-2026-79992 as soon as it is available from your distribution or GNU ELPA, since this is a follow-up to the earlier CVE-2024-53920 fix. Avoid opening remote file names from untrusted or world-writable locations, and on shared multi-user Linux/Unix hosts check shell histories and TRAMP buffers for unexpected command execution. Exploitation requires an existing local foothold, so single-user workstations are at lower practical risk than shared developer machines.

ProductAffected
GNU Project (Free Software Foundation) Emacs TRAMP (bundled with GNU Emacs)—
Estimated exposure
large≈100k–1M actively used Emacs installations (TRAMP ships enabled with every Emacs) — Emacs has a low-single-digit percentage share among tens of millions of developers in public developer surveys, and TRAMP has been included by default in Emacs distributions for many years, so I scaled the active user base down from the…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

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.

Weakness
CWE-78
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

4 stories