---
id: CVE-2026-73077
title: 'Vim is an open source, command line text editor'
summary: >-
  Vim is an open source, command line text editor. Prior to 9.2.0839, the
  runtime/ftplugin/sh.vim, runtime/ftplugin/zsh.vim, and
  runtime/ftplugin/ps1.vim filetype plugins pass attacker-controlled Visual-mode
  selections from K through keywo…
severity: high
cvss: 8.4
cvssVector: 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'
cwe:
  - CWE-78
vendor: vim
product: vim
affected:
  - vim < 9.2.0839
published: '2026-08-11'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:44:04.357'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73077'
references:
  - url: 'https://github.com/vim/vim/commit/c5a82fe013e73c98004ad7cd4f906b1ad1ed610e'
    label: security-advisories@github.com
  - url: 'https://github.com/vim/vim/security/advisories/GHSA-r5v6-q6j8-8qw2'
    label: security-advisories@github.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-73077.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-73077'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2514065'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-73077'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73077'
  - url: 'https://access.redhat.com/errata/RHSA-2026:66336'
  - url: 'https://access.redhat.com/errata/RHSA-2026:66366'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67956'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-08-11T18:33:20.954919Z'
cvssSource: cna
ingestedAt: '2026-09-12T16:28:46.574Z'
epss: 0.0014
epssPercentile: 0.03747
patched:
  - enterprise_linux_appstream_v_10
  - enterprise_linux_appstream_v_9
  - enterprise_linux_baseos_v_10
  - enterprise_linux_baseos_v_9
  - update_infrastructure 5
scores:
  cna: 8.4
  vendor: 7.3
---

## Overview

Vim is an open source, command line text editor. Prior to 9.2.0839, the runtime/ftplugin/sh.vim, runtime/ftplugin/zsh.vim, and runtime/ftplugin/ps1.vim filetype plugins pass attacker-controlled Visual-mode selections from K through keywordprg commands without safely separating shell arguments. fnameescape() and PATH_ESC_CHARS do not neutralize shell metacharacters before ShKeywordPrg, ZshKeywordPrg, or GetHelp invokes bash, zsh, or PowerShell, allowing arbitrary operating-system commands to execute with the privileges of the user running Vim. This issue is fixed in version 9.2.0839.

## Remediation

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

## Vendor advisories

- **RHSA-2026:66336** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10) · released 2026-09-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:66336)
- **RHSA-2026:66366** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 9) · released 2026-09-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:66366)
- **RHSA-2026:67956** · Red Hat · fixed in: Red Hat Update Infrastructure 5 · released 2026-09-16 · [advisory](https://access.redhat.com/errata/RHSA-2026:67956)
