OS Command Injection in Vim - CVE-2026-73077

 

OS Command Injection in Vim - CVE-2026-73077

Published: July 24, 2026 / Updated: August 13, 2026


Vulnerability identifier: #VU139260
CSH Severity: Medium
CVSS v4: 7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-73077
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to command injection in the shell filetype plugins when processing a crafted Visual mode selection through keyword lookup with K. A remote attacker can trick the victim into opening a crafted file, selecting a crafted line, and invoking keyword lookup to execute arbitrary code.

User interaction is required to select the crafted text in Visual mode and invoke K, and the issue affects buffers whose filetype resolves to sh, bash, zsh, or PowerShell with filetype plugins enabled.


Affected software

Vim
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Desktop Applications Module
Basesystem Module
openSUSE Leap
openEuler
vim (Red Hat package)
vim-filesystem
vim-minimal
vim-enhanced
vim-debugsource
vim-debuginfo
vim-common
vim-X11
vim
vim-data
vim-data-common
gvim
gvim-debuginfo
vim-small
vim-small-debuginfo

How to mitigate CVE-2026-73077

Install security update from vendor's website.

Vim - update to 9.2.0839
vim (Red Hat package) - addressed in versions 8.2.2637-26.el9_8.21, 9.1.083-9.el10_2.20
vim-filesystem - update to 9.0-58
vim-minimal - update to 9.0-58
vim-enhanced - update to 9.0-58
vim-debugsource - update to 9.0-58
vim-debuginfo - update to 9.0-58
vim-common - update to 9.0-58
vim-X11 - update to 9.0-58
vim - update to 9.0-58
vim-data - addressed in versions 9.2.0957-17.76.1, 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1
vim-data-common - addressed in versions 9.2.0957-17.76.1, 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1
vim-debugsource - addressed in versions 9.2.0957-17.76.1, 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1
vim-debuginfo - addressed in versions 9.2.0957-17.76.1, 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1
gvim - addressed in versions 9.2.0957-17.76.1, 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1
gvim-debuginfo - addressed in versions 9.2.0957-17.76.1, 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1
vim - addressed in versions 9.2.0957-17.76.1, 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1
vim-small - addressed in versions 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1
vim-small-debuginfo - addressed in versions 9.2.0957-150000.5.102.1, 9.2.0957-150500.20.64.1

External References

Related Security Bulletins