Code Injection in Vim - CVE-2026-59856
Published: June 29, 2026 / Updated: July 15, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper control of code generation in runtime/autoload/phpcomplete.vim when processing a crafted PHP file during omni-completion. A remote attacker can trick the victim into opening a crafted file and invoking omni-completion to execute arbitrary code.
User interaction is required to open a crafted PHP file and manually invoke omni-completion, and exploitation requires filetype plugins to be enabled.
Affected software
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
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
Ubuntu
Basesystem Module
Desktop Applications Module
openSUSE Leap
openEuler
Anolis OS
vim (Ubuntu package)
vim (Red Hat package)
vim-filesystem
vim-minimal
vim-enhanced
vim-debugsource
vim-debuginfo
vim-common
vim-X11
vim
vim-doc
vim-data
vim-data-common
gvim
gvim-debuginfo
vim-small
vim-small-debuginfo
How to mitigate CVE-2026-59856
vim (Ubuntu package) - addressed in versions 2:7.4.052-1ubuntu3.1+esm31, 2:7.4.1689-3ubuntu1.5+esm37, 2:8.0.1453-1ubuntu1.13+esm22, 2:8.1.2269-1ubuntu5.32+esm10, 2:8.2.3995-1ubuntu2.34, 2:9.1.0016-1ubuntu7.18, 2:9.1.2141-1ubuntu4.7
vim (Red Hat package) - update to 8.2.2637-26.el9_8.13
vim-filesystem - update to 9.0-53
vim-minimal - update to 9.0-53
vim-enhanced - update to 9.0-53
vim-debugsource - update to 9.0-53
vim-debuginfo - update to 9.0-53
vim-common - update to 9.0-53
vim-X11 - update to 9.0-53
vim - update to 9.0-53
vim-filesystem - update to 9.0.2092-18
vim-doc - update to 9.0.2092-18
vim-data - update to 9.0.2092-18
vim-minimal - update to 9.0.2092-18
vim-enhanced - update to 9.0.2092-18
vim-common - update to 9.0.2092-18
vim-X11 - update to 9.0.2092-18
vim-debuginfo - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-data-common - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-data - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
gvim - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
gvim-debuginfo - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-small - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-debugsource - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2
vim-small-debuginfo - addressed in versions 9.2.0780-150000.5.99.1, 9.2.0780-150500.20.61.2