OS Command Injection in Vim - CVE-2026-41411

 

OS Command Injection in Vim - CVE-2026-41411

Published: April 22, 2026


Vulnerability identifier: #VU126870
CSH Severity: Medium
CVSS v4: 5.7 [CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:A/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-41411
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 shell commands.

The vulnerability exists due to improper neutralization of special elements used in an os command in tag file processing when resolving tag filenames from a tags file. A remote attacker can place a specially crafted tags file entry containing backtick syntax and trigger tag navigation to execute arbitrary shell commands.

User interaction is required to perform tag navigation such as :tag, Ctrl-], or vim -t after opening Vim in a directory containing a malicious tags file.


Affected software

Vim
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Ubuntu
openEuler
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
vim (Ubuntu package)
vim (Red Hat package)
vim-minimal
vim-X11
vim-common
vim-enhanced
vim-filesystem
vim
vim-debuginfo
vim-debugsource
vim-data
vim-doc

How to mitigate CVE-2026-41411

Install security update from vendor's website.

Vim - update to 9.2.0357
vim (Ubuntu package) - addressed in versions 2:7.4.052-1ubuntu3.1+esm27, 2:7.4.1689-3ubuntu1.5+esm33, 2:8.0.1453-1ubuntu1.13+esm18, 2:8.1.2269-1ubuntu5.32+esm6, 2:8.2.3995-1ubuntu2.29, 2:9.1.0016-1ubuntu7.13, 2:9.1.0967-1ubuntu6.4, 2:9.1.2141-1ubuntu4.1
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.0.1763-24.el8_10, 8.2.2637-20.el9_2.2, 8.2.2637-20.el9_4.3, 8.2.2637-22.el9_6.3, 8.2.2637-26.el9_8.6, 9.1.083-9.el10_2.4
vim-minimal - addressed in versions 8.0.1763-24.0.1, 9.0.2092-17
vim-X11 - addressed in versions 8.0.1763-24.0.1, 9.0.2092-17
vim-common - addressed in versions 8.0.1763-24.0.1, 9.0.2092-17
vim-enhanced - addressed in versions 8.0.1763-24.0.1, 9.0.2092-17
vim-filesystem - addressed in versions 8.0.1763-24.0.1, 9.0.2092-17
vim-filesystem - addressed in versions 9.0-46, 9.0.2092-32
vim-enhanced - addressed in versions 9.0-46, 9.0.2092-32
vim-minimal - addressed in versions 9.0-46, 9.0.2092-32
vim - addressed in versions 9.0-46, 9.0.2092-32
vim-X11 - addressed in versions 9.0-46, 9.0.2092-32
vim-common - addressed in versions 9.0-46, 9.0.2092-32
vim-debuginfo - addressed in versions 9.0-46, 9.0.2092-32
vim-debugsource - addressed in versions 9.0-46, 9.0.2092-32
vim-data - update to 9.0.2092-17
vim-doc - update to 9.0.2092-17

External References

Related Security Bulletins