What’s Vulnerable › Vulnerabilities

CVE-2026-33412: Vim affected by Command injection via newline in glob()

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.

Affected products

How to fix

Upgrade to a fixed version: vim/vim 9.2.0202. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-33412 or the next vulnerability affects your stack