cve.bz

CVE-2026-79992 Emacs: emacs: command injection via crafted filenames in tramp

7.8 highEPSS 0.2%Fix available

High (7.8) in red hat. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-08-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 1:29.4-14.el10_2.3
  • Red Hat Red Hat Enterprise Linux 10: fixed in 1:29.4-17.el10_3
  • Red Hat Red Hat Enterprise Linux 8: fixed in 1:26.1-15.el8_10.2
  • Red Hat Red Hat Enterprise Linux 9: fixed in 1:27.2-18.el9_8.2
  • Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Azure Linux: fixed package versions per release

Ask an AI about this CVE

Show the promptExplain CVE-2026-79992 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-79992?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-79992?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-79992 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • red hat:red hat enterprise linux 10
  • red hat:red hat enterprise linux 6
  • red hat:red hat enterprise linux 7
  • red hat:red hat enterprise linux 8
  • red hat:red hat enterprise linux 9

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 101:29.4-14.el10_2.3
Red Hat Enterprise Linux 101:29.4-17.el10_3
Red Hat Enterprise Linux 81:26.1-15.el8_10.2
Red Hat Enterprise Linux 91:27.2-18.el9_8.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14emacsno fix listedDEBIAN-CVE-2026-79992
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 3 morexemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2026-79992
Ubuntu26.10emacs, xemacs21, xemacs21-packagesno fix listedUBUNTU-CVE-2026-79992
UbuntuPro:16.04:LTSemacs24no fix listedUBUNTU-CVE-2026-79992
UbuntuPro:18.04:LTSemacs25no fix listedUBUNTU-CVE-2026-79992
UbuntuPro:20.04:LTS, Pro:22.04:LTS, Pro:24.04:LTS and 1 moreemacsno fix listedUBUNTU-CVE-2026-79992
Red Hatenterprise_linux:8::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:26.1-15.el8_10.2RHSA-2026:80506
Red Hatenterprise_linux:8::baseosemacs, emacs-filesystem1:26.1-15.el8_10.2RHSA-2026:80506
Red Hatenterprise_linux:9::appstreamemacs, emacs-nox, emacs-lucid and 7 more1:27.2-18.el9_8.2RHSA-2026:80507
Red Hatenterprise_linux:10.2emacs, emacs-nw, emacs-lucid and 8 more1:29.4-14.el10_2.3RHSA-2026:84591
Red Hatenterprise_linux:10.3emacs, emacs-nw, emacs-lucid and 8 more1:29.4-17.el10_3RHSA-2026:98574
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 moreemacs27.2-150400.3.31.2SUSE-SU-2026:4083-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 9 moreemacs27.2-150400.3.37.1SUSE-SU-2026:4893-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5emacs24.3-25.26.1SUSE-SU-2026:3993-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0emacs30.2-160000.3.1SUSE-SU-2026:23589-1
openSUSELeap 16.0emacs30.2-160000.3.1openSUSE-SU-2026:21711-1
openSUSETumbleweedemacs31.1-1.1openSUSE-SU-2026:11637-1
AlmaLinux8emacs, emacs-nox, emacs-lucid and 3 more1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux9emacs, emacs-nox, emacs-lucid and 2 more1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux10emacs-filesystem1:29.4-14.el10_2.3ALSA-2026:84591
Rocky Linux8emacs1:26.1-15.el8_10.2RLSA-2026:80506
Rocky Linux9emacs1:27.2-18.el9_8.2RLSA-2026:80507
Rocky Linux10emacs1:29.4-14.el10_2.3RLSA-2026:84591
Rocky Linux10emacs, emacs-nw, emacs-lucid and 7 more1:29.4-17.el10_3RLSA-2026:98574
Azure Linux3emacs29.4-6AZL-98195

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important local shell command injection flaw in Emacs TRAMP. An attacker with local access could exploit this vulnerability by tricking a user into processing a maliciously crafted filename, leading to arbitrary command execution. This issue requires user interaction with a malicious file, limiting its remote exploitability.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10emacs-1:29.4-14.el10_2.3Fixed 2026-10-19RHSA-2026:84591
Red Hat Enterprise Linux 8emacs-1:26.1-15.el8_10.2Fixed 2026-10-12RHSA-2026:80506
Red Hat Enterprise Linux 9emacs-1:27.2-18.el9_8.2Fixed 2026-10-12RHSA-2026:80507
Red Hat Enterprise Linux 6emacsWill not fix
Red Hat Enterprise Linux 7emacsAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-79992.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON