Command injection in Vim - CVE-2026-73078

 

Command injection in Vim - CVE-2026-73078

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


Vulnerability identifier: #VU139262
CSH Severity: High
CVSS v4: 8.4 [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]
CVE-ID: CVE-2026-73078
CWE-ID: CWE-77
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 netrw menu construction in runtime/pack/dist/opt/netrw/autoload/netrw.vim when rebuilding bookmarks, history, and targets menus from attacker-controlled directory paths. A remote attacker can supply a specially crafted directory path containing command separators or quotes to execute arbitrary code.

Exploitation requires the GUI version of Vim with the menu bar enabled, and user interaction to browse or bookmark the crafted path so it is recorded in netrw history or bookmarks and the menus are rebuilt.


Affected software

Vim
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 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 ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Basesystem Module
Desktop Applications 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-73078

Install security update from vendor's website.

Vim - update to 9.2.0840
vim (Red Hat package) - addressed in versions 8.0.1763-31.el8_10.7, 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