Red Hat Enterprise Linux 10
Emacs: emacs: command injection via crafted filenames in tramp
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 versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 1:29.4-14.el10_2.3
Fixed in 1:29.4-17.el10_3
Fixed in 1:26.1-15.el8_10.2
Fixed in 1:26.1-15.el8_10.2
Fixed in 1:27.2-18.el9_8.2
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 1:29.4-14.el10_2.3 or later.
Upgrade Red Hat Enterprise Linux 10 to 1:29.4-17.el10_3 or later.
Upgrade Red Hat Enterprise Linux 8 to 1:26.1-15.el8_10.2 or later.
Upgrade Red Hat Enterprise Linux 8 to 1:26.1-15.el8_10.2 or later.
Upgrade Red Hat Enterprise Linux 9 to 1:27.2-18.el9_8.2 or later.
Workaround
Users of Emacs TRAMP should avoid processing untrusted filenames or interacting with remote systems that may contain maliciously crafted file names. This operational control reduces the risk of local shell command injection.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:80506
- Vendor advisory access.redhat.com/errata/RHSA-2026:80507
- Vendor advisory access.redhat.com/errata/RHSA-2026:84591
1 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:98574
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.