Description
GNU Emacs before 31.2 (and TRAMP through 2.8.2) allows OS command injection via a filename because tramp-user-regexp has an incomplete list of disallowed inputs. NOTE: this issue exists because of an incomplete fix for CVE-2026-79992.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GNU | Emacs | < 31.2 | 31.2 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | emacs +2 | No fix yet | — |
| Ubuntu 26.04 LTS | xemacs21 +1 | No fix yet | — |
| Ubuntu 24.04 LTS | xemacs21 +1 | No fix yet | — |
| Ubuntu 22.04 LTS | xemacs21 +1 | No fix yet | — |
| Ubuntu 20.04 LTS | xemacs21 +1 | No fix yet | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | xemacs21 +1 | No fix yet | — |
| Ubuntu 16.04 LTS | xemacs21 +1 | No fix yet | — |
| Ubuntu Pro 26.04 LTS | emacs | No fix yet | — |
| Ubuntu Pro 24.04 LTS | emacs | No fix yet | — |
| Ubuntu Pro 22.04 LTS | emacs | No fix yet | — |
| Ubuntu Pro 20.04 LTS | emacs | No fix yet | — |
| Ubuntu Pro 18.04 LTS | emacs25 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | emacs24 | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
| SLES 15 SP6 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
| SLES 15 SP5 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
| SLES 15 SP4 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
| SLES for SAP 15 SP5 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
| SLES for SAP 15 SP4 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
| SLE HPC 15 SP5 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
| SLE HPC 15 SP4 | emacs | 27.2-150400.3.37.1 | SUSE-SU-2026:4893-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | emacs +6 | 1:28.2-3.amzn2023.0.13 | ALAS2023-2026-3338 |
| Amazon Linux 2 | emacs +6 | 1:27.2-4.amzn2.0.10 | ALAS2-2026-4046 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | emacs | No fix yet | — |
Advisories 4
- ALAS2023-2026-3338 Important: emacs security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 2, 2026
- ALAS2-2026-4046 Important: emacs security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Nov 2, 2026
- WID-SEC-2026-3857 GNU Emacs: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Nov 1, 2026
- SUSE-SU-2026:4893-1 Security update for emacs SUSE / openSUSE Security Updates · Oct 24, 2026