CVE-2026-33412 Vim affected by Command injection via newline in glob()
Attackers can execute arbitrary shell commands via newline injection in Vim's glob() function, requiring specific shell settings.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-33412?
CVE-2026-33412 is a medium-severity command injection vulnerability in Vim Vim, published on 24 Mar 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 version 9.2.0202, a command injection vulnerability exists in Vim's glob() function on Unix-like systems. By including a newline character (\n) in a pattern passed to glob(), an attacker may be able to execute arbitrary shell commands. This vulnerability depends on the user's 'shell' setting. This issue has been patched in version 9.2.0202.
Weakness: CWE-78
Which versions are affected by CVE-2026-33412?
It affects 1 product.
Linux distribution packages (7)
vim Red Hat:rhel_els:6 | All versions | 2:7.4.629-5.el6_10.3 |
vim-X11 Red Hat:rhel_els:6 | All versions | 2:7.4.629-5.el6_10.3 |
vim-common Red Hat:rhel_els:6 | All versions | 2:7.4.629-5.el6_10.3 |
vim-debuginfo Red Hat:rhel_els:6 | All versions | 2:7.4.629-5.el6_10.3 |
vim-enhanced Red Hat:rhel_els:6 | All versions | 2:7.4.629-5.el6_10.3 |
vim-filesystem Red Hat:rhel_els:6 | All versions | 2:7.4.629-5.el6_10.3 |
vim-minimal Red Hat:rhel_els:6 | All versions | 2:7.4.629-5.el6_10.3 |
Products include Vim Vim.
How do I fix CVE-2026-33412?
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-33412 being exploited?
There is no known exploitation of CVE-2026-33412 in the wild and no public exploit code.
Other vulnerabilities in Vim Vim
Sources
Also known as ALPINE-CVE-2026-33412, AZL-80532, BELL-CVE-2026-33412, CLSA-2026-1777306218, CLSA-2026-1777385906, CLSA-2026-1777386117 and 12 more.