CVE-2026-41411 Vim: Command injection via backtick expansion in tag filenames
Attackers can execute arbitrary system commands via backtick syntax in tag filenames, requiring users to open malicious tag files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-41411?
CVE-2026-41411 is a medium-severity command injection vulnerability in Vim Vim, published on 24 Apr 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Vim is an open source, command line text editor. Prior to 9.2.0357, A command injection vulnerability exists in Vim's tag file processing. When resolving a tag, the filename field from the tags file is passed through wildcard expansion to resolve environment variables and wildcards. If the filename field contains backtick syntax (e.g., `command`), Vim executes the embedded command via the system shell with the full privileges of the running user.
Weakness: CWE-78
Which versions are affected by CVE-2026-41411?
It affects 1 product.
Linux distribution packages (32)
vim-X11 AlmaLinux:10 | All versions | 2:9.1.083-9.el10_2.4 |
vim-common AlmaLinux:10 | All versions | 2:9.1.083-9.el10_2.4 |
vim-data AlmaLinux:10 | All versions | 2:9.1.083-9.el10_2.4 |
vim-enhanced AlmaLinux:10 | All versions | 2:9.1.083-9.el10_2.4 |
vim-filesystem AlmaLinux:10 | All versions | 2:9.1.083-9.el10_2.4 |
vim-minimal AlmaLinux:10 | All versions | 2:9.1.083-9.el10_2.4 |
xxd AlmaLinux:10 | All versions | 2:9.1.083-9.el10_2.4 |
vim-X11 AlmaLinux:8 | All versions | 2:8.0.1763-24.el8_10 |
vim-common AlmaLinux:8 | All versions | 2:8.0.1763-24.el8_10 |
vim-enhanced AlmaLinux:8 | All versions | 2:8.0.1763-24.el8_10 |
vim-filesystem AlmaLinux:8 | All versions | 2:8.0.1763-24.el8_10 |
vim-minimal AlmaLinux:8 | All versions | 2:8.0.1763-24.el8_10 |
vim-X11 AlmaLinux:9 | All versions | 2:8.2.2637-26.el9_8.6 |
vim-common AlmaLinux:9 | All versions | 2:8.2.2637-26.el9_8.6 |
vim-enhanced AlmaLinux:9 | All versions | 2:8.2.2637-26.el9_8.6 |
vim-filesystem AlmaLinux:9 | All versions | 2:8.2.2637-26.el9_8.6 |
vim-minimal AlmaLinux:9 | All versions | 2:8.2.2637-26.el9_8.6 |
vim Red Hat:enterprise_linux:10.2 | All versions | 2:9.1.083-9.el10_2.4 |
vim-X11 Red Hat:enterprise_linux:10.2 | All versions | 2:9.1.083-9.el10_2.4 |
vim-enhanced Red Hat:enterprise_linux:10.2 | All versions | 2:9.1.083-9.el10_2.4 |
vim-minimal Red Hat:enterprise_linux:10.2 | All versions | 2:9.1.083-9.el10_2.4 |
vim-X11 Red Hat:enterprise_linux:8::appstream | All versions | 2:8.0.1763-24.el8_10 |
vim-enhanced Red Hat:enterprise_linux:8::appstream | All versions | 2:8.0.1763-24.el8_10 |
vim Red Hat:enterprise_linux:8::baseos | All versions | 2:8.0.1763-24.el8_10 |
vim-minimal Red Hat:enterprise_linux:8::baseos | All versions | 2:8.0.1763-24.el8_10 |
vim-X11 Red Hat:enterprise_linux:9::appstream | All versions | 2:8.2.2637-26.el9_8.6 |
vim-enhanced Red Hat:enterprise_linux:9::appstream | All versions | 2:8.2.2637-26.el9_8.6 |
vim Red Hat:enterprise_linux:9::baseos | All versions | 2:8.2.2637-26.el9_8.6 |
vim-minimal Red Hat:enterprise_linux:9::baseos | All versions | 2:8.2.2637-26.el9_8.6 |
vim Rocky Linux:10 | All versions | 2:9.1.083-9.el10_2.4 |
vim Rocky Linux:8 | All versions | 2:8.0.1763-24.el8_10 |
vim Rocky Linux:9 | All versions | 2:8.2.2637-26.el9_8.6 |
Products include Vim Vim.
How do I fix CVE-2026-41411?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-41411 being exploited?
There is no known exploitation of CVE-2026-41411 in the wild and no public exploit code.
Other vulnerabilities in Vim Vim
Sources
Also known as ALPINE-CVE-2026-41411, ALSA-2026:28209, ALSA-2026:28210, ALSA-2026:28553, AZL-84047, BELL-CVE-2026-41411 and 25 more.