Incomplete fix for Emacs CVE-2026-79992
Researchers found Emacs CVE-2026-79992's fix incomplete because TRAMP still accepts dangerous username characters.
Shell argument injection in GNU Emacs TRAMP (incomplete fix of CVE-2024-53920)
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.
| Product | Affected |
|---|---|
| GNU Project (Free Software Foundation) Emacs TRAMP (bundled with GNU Emacs) | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
Researchers found Emacs CVE-2026-79992's fix incomplete because TRAMP still accepts dangerous username characters.
Bas Alberts asks Red Hat to assign a CVE for an incomplete Emacs fix of CVE-2024-53920.
Maintainers say the Emacs fix for CVE-2026-79992 is incomplete and request another CVE.
Salvatore Bonaccorso flags CVE-2026-108976 as an incomplete fix for Emacs CVE-2026-79992.
Today 1.6K readers · 2.5K views · 779 reads · all time 189K views