CVE-2026-79992: Emacs: local shell command injection through the user field in emacs tramp

Published Aug 25, 2026
·
Updated

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.

Other sources

Emacs TRAMP is vulnerable to a local shell command injection when processing maliciously crafted filenames. The vulnerability arises from the fact of TRAMP concatenating login arguments without a proper sanitization and further passing the result into a local shell.

Red Hat

Emacs: local shell command injection through the user field in emacs tramp

Microsoft

Affected Software

2 affected componentsFixes available
Emacs TRAMP
Microsoft azl3 emacs 29.4-4<29.4-5
29.4-5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 29.4-5

Event History

Aug 25, 2026
Data Sourced
via Red Hat·04:52 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·05:16 PM
Data Sourced
via MITRE·05:16 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:18 PM
DescriptionSeverityWeakness
Aug 29, 2026
Data Sourced
via Microsoft·08:08 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:08 AM
DescriptionSeverity

Frequently Asked Questions

1

Who is exposed to this issue?

Users of Emacs TRAMP are exposed when they process maliciously crafted filenames. Exploitation is local and requires an attacker to have local access with low privileges.

2

What does an attacker need to do to exploit it?

The attacker needs to cause TRAMP to process a maliciously crafted filename containing login arguments that are concatenated and passed to a local shell without proper sanitization. No user interaction is required according to the provided vector.

3

What is the potential impact of successful exploitation?

Successful exploitation can result in arbitrary code execution through local shell command injection. The supplied severity vector indicates high impacts to confidentiality, integrity, and availability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203