---
id: CVE-2026-108976
title: >-
  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
summary: >-
  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.
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-184
published: '2026-10-11'
updated: '2026-10-11'
sourceUpdated: '2026-10-11T21:16:43.580'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-108976'
references:
  - url: 'https://ftp.gnu.org/gnu/tramp/tramp-2.8.2.tar.gz'
    label: cve@mitre.org
  - url: 'https://www.openwall.com/lists/oss-security/2026/08/21/1'
    label: cve@mitre.org
  - url: 'https://www.openwall.com/lists/oss-security/2026/10/11/1'
    label: cve@mitre.org
tags:
  - nvd
ingestedAt: '2026-10-12T14:50:34.069Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
