---
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
vendor: GNU
product: Emacs
affected:
  - Emacs < 31.2
published: '2026-10-11'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T17:25:57.940'
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
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-108976.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-108976'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2549383'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-108976'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-108976'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00647
epssPercentile: 0.50822
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-15T16:18:38.501389Z'
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.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-10-13 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-108976.json)
