Code Injection in Vim - CVE-2026-55895
Published: June 18, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper control of code generation in s:NetrwLocalRmFile() in the netrw plugin when deleting a local file from the browser using a crafted filename from the directory listing. A remote attacker can place a file with a crafted name containing Ex command separators and trick the victim into deleting that entry to execute arbitrary code.
User interaction is required to delete the specific crafted file entry, and exploitation is limited to environments where filenames may contain the bar character.
Affected software
Ubuntu
openEuler
vim (Ubuntu package)
vim-filesystem
vim-enhanced
vim-debugsource
vim-debuginfo
vim-common
vim-X11
vim
vim-minimal
How to mitigate CVE-2026-55895
vim (Ubuntu package) - addressed in versions 2:7.4.052-1ubuntu3.1+esm30, 2:7.4.1689-3ubuntu1.5+esm36, 2:8.0.1453-1ubuntu1.13+esm21, 2:8.1.2269-1ubuntu5.32+esm9, 2:8.2.3995-1ubuntu2.33, 2:9.1.0016-1ubuntu7.17, 2:9.1.0967-1ubuntu6.8, 2:9.1.2141-1ubuntu4.6
vim-filesystem - addressed in versions 9.0-51, 9.0.2092-37
vim-enhanced - addressed in versions 9.0-51, 9.0.2092-37
vim-debugsource - addressed in versions 9.0-51, 9.0.2092-37
vim-debuginfo - addressed in versions 9.0-51, 9.0.2092-37
vim-common - addressed in versions 9.0-51, 9.0.2092-37
vim-X11 - addressed in versions 9.0-51, 9.0.2092-37
vim - addressed in versions 9.0-51, 9.0.2092-37
vim-minimal - addressed in versions 9.0-51, 9.0.2092-37