cve.bz

CVE-2026-73077 vim vim: OS Command Injection

8.4 highEPSS 0.1%Fix available

High (8.4) in vim vim. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

8.4 high
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

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 4th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-08-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-73077 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-73077?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-73077?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-73077 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-73077

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-73077](https://cve.bz/cve/badge/CVE-2026-73077.svg)](https://cve.bz/cve/CVE-2026-73077)

HTML:

<a href="https://cve.bz/cve/CVE-2026-73077"><img src="https://cve.bz/cve/badge/CVE-2026-73077.svg" alt="CVE-2026-73077"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vim:vimbefore 9.2.0839

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12vimno fix listedDEBIAN-CVE-2026-73077
Debian13vim2:9.1.1230-2+deb13u1DEBIAN-CVE-2026-73077
Debian14vim2:9.2.0858-1DEBIAN-CVE-2026-73077
Ubuntu22.04:LTSvim2:8.2.3995-1ubuntu2.35UBUNTU-CVE-2026-73077 USN-8657-1
Ubuntu24.04:LTSvim2:9.1.0016-1ubuntu7.19UBUNTU-CVE-2026-73077 USN-8657-1
Ubuntu26.04:LTSvim2:9.1.2141-1ubuntu4.8UBUNTU-CVE-2026-73077 USN-8657-1
UbuntuPro:14.04:LTSvim2:7.4.052-1ubuntu3.1+esm32USN-8657-1
UbuntuPro:16.04:LTSvim2:7.4.1689-3ubuntu1.5+esm38USN-8657-1
UbuntuPro:18.04:LTSvim2:8.0.1453-1ubuntu1.13+esm23USN-8657-1
UbuntuPro:20.04:LTSvim2:8.1.2269-1ubuntu5.32+esm12USN-8657-1
Red Hatenterprise_linux:9::appstreamvim-X11, vim-common, vim-enhanced2:8.2.2637-26.el9_8.21RHSA-2026:66366
Red Hatenterprise_linux:9::baseosvim2:8.2.2637-26.el9_8.21RHSA-2026:66366
Red Hatenterprise_linux:10.2vim, vim-X11, vim-common and 1 more2:9.1.083-9.el10_2.20RHSA-2026:66336
Red Hatrhel_e4s:9.2::appstreamvim-X11, vim-common, vim-enhanced and 6 more2:8.2.2637-20.el9_2.3RHSA-2026:72466
Red Hatrhel_e4s:9.2::baseosvim, vim-minimal, vim-debuginfo and 6 more2:8.2.2637-20.el9_2.3RHSA-2026:72466
Red Hatrhel_e4s:9.4::appstreamvim-X11, vim-common, vim-enhanced and 6 more2:8.2.2637-20.el9_4.4RHSA-2026:72465
Red Hatrhel_e4s:9.4::baseosvim, vim-minimal, vim-debuginfo and 6 more2:8.2.2637-20.el9_4.4RHSA-2026:72465
Red Hatrhel_eus:9.6::appstreamvim-X11, vim-common, vim-enhanced and 6 more2:8.2.2637-22.el9_6.4RHSA-2026:70818
Red Hatrhel_eus:9.6::baseosvim, vim-minimal, vim-debuginfo and 6 more2:8.2.2637-22.el9_6.4RHSA-2026:70818
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 3 morevim9.2.0957-150000.5.102.1SUSE-SU-2026:3679-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 6 morevim9.2.0957-150500.20.64.1SUSE-SU-2026:3680-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5vim9.2.0957-17.76.1SUSE-SU-2026:3677-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0vim9.2.0957-160000.1.1SUSE-SU-2026:23552-1
SUSELinux Micro 6.0vim9.2.0957-1.1SUSE-SU-2026:23365-1
SUSELinux Micro 6.1vim9.2.0957-slfo.1.1_1.1SUSE-SU-2026:23190-1
SUSELinux Micro 6.2vim9.2.0957-160000.1.1SUSE-SU-2026:23393-1
SUSELinux Micro Extras 6.2vim9.2.0957-160000.1.1SUSE-SU-2026:23391-1
openSUSELeap 16.0vim9.2.0957-160000.1.1openSUSE-SU-2026:21671-1
AlmaLinux9vim-X11, vim-common, vim-minimal and 2 more2:8.2.2637-26.el9_8.21ALSA-2026:66366
AlmaLinux10xxd, vim-X11, vim-data and 4 more2:9.1.083-9.el10_2.20ALSA-2026:66336
Rocky Linux9vim2:8.2.2637-26.el9_8.21RLSA-2026:66366
Rocky Linux10vim2:9.1.083-9.el10_2.20RLSA-2026:66336
Alpinev3.23vim9.2.0854-r0ALPINE-CVE-2026-73077
Alpinev3.24vim9.2.0843-r0ALPINE-CVE-2026-73077
Azure Linux3vim9.2.0957-1AZL-95559
Alpaquita23, 25, streamvim9.2.0854-r0BELL-CVE-2026-73077

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important vulnerability in Vim's shell plugins allows full system compromise in Red Hat environments if a user selects crafted text in Visual mode and triggers a keyword lookup. This does not affect RHEL 8 and older versions.

Red Hat's mitigation

To mitigate this vulnerability, users can disable the `keywordprg` option for shell script filetypes. This prevents Vim from executing external commands via the `K` command with potentially untrusted input. Create or edit the following files in your Vim configuration directory:

- `~/.vim/after/ftplugin/sh.vim`: `setlocal keywordprg=`

- `~/.vim/after/ftplugin/zsh.vim`: `setlocal keywordprg=`

- `~/.vim/after/ftplugin/ps1.vim`: `setlocal keywordprg=`

This change takes effect the next time a shell script is opened in Vim.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10vim-2:9.1.083-9.el10_2.20Fixed 2026-09-10RHSA-2026:66336
Red Hat Enterprise Linux 9vim-2:8.2.2637-26.el9_8.21Fixed 2026-09-10RHSA-2026:66366
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsvim-2:8.2.2637-20.el9_2.3Fixed 2026-09-28RHSA-2026:72466
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsvim-2:8.2.2637-20.el9_4.4Fixed 2026-09-28RHSA-2026:72465
Red Hat Enterprise Linux 9.6 Extended Update Supportvim-2:8.2.2637-22.el9_6.4Fixed 2026-09-23RHSA-2026:70818
Red Hat AI Inference Server 3.2rhaiis/model-opt-cuda-rhel9:1790621714Fixed 2026-09-30RHSA-2026:73859
Red Hat AI Inference Server 3.2rhaiis/vllm-cuda-rhel9:1790621718Fixed 2026-09-30RHSA-2026:73929
Red Hat AI Inference Server 3.2rhaiis/vllm-rocm-rhel9:1790621713Fixed 2026-09-30RHSA-2026:73930
Red Hat AI Inference Server 3.5rhaii/vllm-rocm-rhel9:1791425869Fixed 2026-10-13RHSA-2026:82059
Red Hat AI Inference Server 3.5rhaii/vllm-gaudi-rhel9:1791427182Fixed 2026-10-13RHSA-2026:82061
Red Hat AI Inference Server 3.5rhaii/model-opt-cuda-rhel9:1791803821Fixed 2026-10-13RHSA-2026:82066
Red Hat AI Inference Server 3.5rhaii/vllm-cuda-rhel9:1791473631Fixed 2026-10-13RHSA-2026:82368
Red Hat AI Inference Server 3.5rhaii/vllm-spyre-rhel9:1791818357Fixed 2026-10-13RHSA-2026:82371
Red Hat Enterprise Linux 6vimNot affected
Red Hat Enterprise Linux 7vimNot affected
Red Hat Enterprise Linux 8vimNot affected
Red Hat Hardened ImagesvimNot affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Not affected
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Not affected
52 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-73077.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON