CVEfocus › CVE database › CVE-2026-79992

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

CVSS 7.8 HighEPSS 0.2% (higher than 8% of CVEs)Published 2026-08-25Updated 2026-11-11Assigner: redhat

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.

CWE-78

What to do

Fixed builds are available from AlmaLinux, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

39Fixed
24Fix pending
6Under investigation
4Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10emacsFix pendingUBUNTU-CVE-2026-79992
Ubuntu 26.10xemacs21Fix pendingUBUNTU-CVE-2026-79992
Ubuntu 26.10xemacs21-packagesFix pendingUBUNTU-CVE-2026-79992
Ubuntu 26.04emacsFix pendingUBUNTU-CVE-2026-79992
Ubuntu 26.04xemacs21Under investigationUBUNTU-CVE-2026-79992
Ubuntu 26.04xemacs21-packagesUnder investigationUBUNTU-CVE-2026-79992
Ubuntu 24.04emacsFix pendingUBUNTU-CVE-2026-79992
Ubuntu 24.04xemacs21Under investigationUBUNTU-CVE-2026-79992
Ubuntu 24.04xemacs21-packagesUnder investigationUBUNTU-CVE-2026-79992
Ubuntu 22.04emacsFix pendingUBUNTU-CVE-2026-79992
Ubuntu 22.04xemacs21Under investigationUBUNTU-CVE-2026-79992
Ubuntu 22.04xemacs21-packagesUnder investigationUBUNTU-CVE-2026-79992
Ubuntu 20.04emacsFix pendingUBUNTU-CVE-2026-79992
Ubuntu 20.04xemacs21Fix pendingUBUNTU-CVE-2026-79992
Ubuntu 20.04xemacs21-packagesFix pendingUBUNTU-CVE-2026-79992
Ubuntu 18.04emacs25Fix pendingUBUNTU-CVE-2026-79992
Ubuntu 18.04xemacs21Fix pendingUBUNTU-CVE-2026-79992
Ubuntu 18.04xemacs21-packagesFix pendingUBUNTU-CVE-2026-79992
Ubuntu 16.04emacs24Fix pendingUBUNTU-CVE-2026-79992
Ubuntu 16.04xemacs21Fix pendingUBUNTU-CVE-2026-79992
Ubuntu 16.04xemacs21-packagesFix pendingUBUNTU-CVE-2026-79992
Debian 14emacsFix pendingDEBIAN-CVE-2026-79992
Debian 13emacsFix pendingDEBIAN-CVE-2026-79992
Debian 12emacsFix pendingDEBIAN-CVE-2026-79992
Red Hat Enterprise Linux 10emacsFixed1:29.4-14.el10_2.3RHSA-2026:98574
Red Hat Enterprise Linux 10emacs-commonFixed1:29.4-17.el10_3RHSA-2026:84591
Red Hat Enterprise Linux 10emacs-filesystemFixed1:29.4-17.el10_3RHSA-2026:84591
Red Hat Enterprise Linux 10emacs-lucidFixed1:29.4-14.el10_2.3RHSA-2026:98574
Red Hat Enterprise Linux 10emacs-nwFixed1:29.4-17.el10_3RHSA-2026:84591
Red Hat Enterprise Linux 9emacsFixed1:27.2-18.el9_8.2RHSA-2026:80507
Red Hat Enterprise Linux 9emacs-commonFixed1:27.2-18.el9_8.2RHSA-2026:80507
Red Hat Enterprise Linux 9emacs-filesystemFixed1:27.2-18.el9_8.2RHSA-2026:80507
Red Hat Enterprise Linux 9emacs-lucidFixed1:27.2-18.el9_8.2RHSA-2026:80507
Red Hat Enterprise Linux 9emacs-noxFixed1:27.2-18.el9_8.2RHSA-2026:80507
Red Hat Enterprise Linux 8emacsFixed1:26.1-15.el8_10.2RHSA-2026:80506
Red Hat Enterprise Linux 8emacs-commonFixed1:26.1-15.el8_10.2RHSA-2026:80506
Red Hat Enterprise Linux 8emacs-filesystemFixed1:26.1-15.el8_10.2RHSA-2026:80506
Red Hat Enterprise Linux 8emacs-lucidFixed1:26.1-15.el8_10.2RHSA-2026:80506
Red Hat Enterprise Linux 8emacs-noxFixed1:26.1-15.el8_10.2RHSA-2026:80506
Red Hat Enterprise Linux 8emacs-terminalFixed1:26.1-15.el8_10.2RHSA-2026:80506
Red Hat Enterprise Linux 7emacsFix pending
Affected
Red Hat Enterprise Linux 7emacs-commonFix pending
Affected
Red Hat Enterprise Linux 7emacs-elFix pending
Affected
Red Hat Enterprise Linux 7emacs-filesystemFix pending
Affected
Red Hat Enterprise Linux 7emacs-noxFix pending
Affected
Red Hat Enterprise Linux 7emacs-terminalFix pending
Affected
Red Hat Enterprise Linux 6emacsWill not fix
Will not fix
Red Hat Enterprise Linux 6emacs-commonWill not fix
Will not fix
Red Hat Enterprise Linux 6emacs-elWill not fix
Will not fix
Red Hat Enterprise Linux 6emacs-noxWill not fix
Will not fix
AlmaLinux 10emacsFixed1:29.4-17.el10_3ALSA-2026:98574
AlmaLinux 10emacs-commonFixed1:29.4-17.el10_3ALSA-2026:98574
AlmaLinux 10emacs-filesystemFixed1:29.4-17.el10_3ALSA-2026:84591
AlmaLinux 10emacs-lucidFixed1:29.4-17.el10_3ALSA-2026:98574
AlmaLinux 10emacs-nwFixed1:29.4-17.el10_3ALSA-2026:98574
AlmaLinux 9emacsFixed1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux 9emacs-commonFixed1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux 9emacs-filesystemFixed1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux 9emacs-lucidFixed1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux 9emacs-noxFixed1:27.2-18.el9_8.2ALSA-2026:80507
AlmaLinux 8emacsFixed1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux 8emacs-commonFixed1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux 8emacs-filesystemFixed1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux 8emacs-lucidFixed1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux 8emacs-noxFixed1:26.1-15.el8_10.2ALSA-2026:80506
AlmaLinux 8emacs-terminalFixed1:26.1-15.el8_10.2ALSA-2026:80506
Rocky Linux 10emacsFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 10emacs-commonFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 10emacs-filesystemFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 10emacs-lucidFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 10emacs-nwFixed1:29.4-17.el10_3RLSA-2026:98574
Rocky Linux 9emacsFixed1:27.2-18.el9_8.2RLSA-2026:80507
Rocky Linux 8emacsFixed1:26.1-15.el8_10.2RLSA-2026:80506

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.