OS Command Injection in Vim - CVE-2026-34982
Published: April 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary OS commands.
The vulnerability exists due to improper neutralization of special elements used in an OS command in modeline processing for the complete, guitabtooltip, and printheader options and the mapset() function when opening a crafted file. A remote attacker can deliver a specially crafted file to execute arbitrary OS commands.
User interaction is required to open a crafted file.
Affected software
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 High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
Anolis OS
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
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
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Ubuntu
Basesystem Module
Desktop Applications Module
openSUSE Leap
openEuler
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
vim (Ubuntu package)
vim (Red Hat package)
vim-filesystem
vim-minimal
vim-enhanced
vim-common
vim-X11
vim-data
vim-doc
vim-debugsource
vim-debuginfo
vim
gvim-debuginfo
gvim
vim-data-common
vim-small-debuginfo
vim-small
How to mitigate CVE-2026-34982
vim (Ubuntu package) - addressed in versions 2:7.4.052-1ubuntu3.1+esm24, 2:7.4.1689-3ubuntu1.5+esm30, 2:8.0.1453-1ubuntu1.13+esm15, 2:8.1.2269-1ubuntu5.32+esm3, 2:8.2.3995-1ubuntu2.27, 2:9.1.0016-1ubuntu7.11, 2:9.1.0967-1ubuntu6.2
vim (Red Hat package) - addressed in versions 8.0.1763-15.el8_4.2, 8.0.1763-19.el8_6.6, 8.0.1763-20.el8_8.2, 8.2.2637-20.el9_2.2, 8.2.2637-20.el9_4.3, 8.2.2637-22.el9_6.3, 8.2.2637-23.el9_7.3, 9.1.083-6.el10_1.4
vim-filesystem - addressed in versions 8.0.1763-22.0.1, 9.0.2092-13
vim-minimal - addressed in versions 8.0.1763-22.0.1, 9.0.2092-13
vim-enhanced - addressed in versions 8.0.1763-22.0.1, 9.0.2092-13
vim-common - addressed in versions 8.0.1763-22.0.1, 9.0.2092-13
vim-X11 - addressed in versions 8.0.1763-22.0.1, 9.0.2092-13
vim-data - update to 9.0.2092-13
vim-doc - update to 9.0.2092-13
vim-filesystem - update to 9.0.2092-29
vim-minimal - update to 9.0.2092-29
vim-enhanced - update to 9.0.2092-29
vim-debugsource - update to 9.0.2092-29
vim-debuginfo - update to 9.0.2092-29
vim-common - update to 9.0.2092-29
vim-X11 - update to 9.0.2092-29
vim - update to 9.0.2092-29
gvim-debuginfo - addressed in versions 9.2.0280-17.62.1, 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
vim - addressed in versions 9.2.0280-17.62.1, 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
vim-debugsource - addressed in versions 9.2.0280-17.62.1, 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
gvim - addressed in versions 9.2.0280-17.62.1, 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
vim-debuginfo - addressed in versions 9.2.0280-17.62.1, 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
vim-data - addressed in versions 9.2.0280-17.62.1, 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
vim-data-common - addressed in versions 9.2.0280-17.62.1, 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
vim-small-debuginfo - addressed in versions 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
vim-small - addressed in versions 9.2.0280-150000.5.89.1, 9.2.0280-150500.20.46.1
External References
Related Security Bulletins
- OS Command Injection in Vim
- Ubuntu update for vim
- openEuler update for vim
- Anolis OS update for vim
- Red Hat Enterprise Linux 10 update for vim
- Red Hat Enterprise Linux 9 update for vim
- Anolis OS update for vim
- Red Hat Enterprise Linux 9 update for vim
- Red Hat Enterprise Linux 9 update for vim
- Red Hat Enterprise Linux 9 update for vim
- Red Hat Enterprise Linux 8 update for vim
- Red Hat Enterprise Linux 8 update for vim
- Red Hat Enterprise Linux 8 update for vim
- SUSE update for vim
- SUSE update for vim
- SUSE update for vim