JLSEC-2026-1858: Command Injection
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 9.2.0202
Event History
Frequently Asked Questions
Which environments are affected?
The issue affects Vim on Unix-like systems before version 9.2.0202. Exploitability depends on the user's configured 'shell' setting.
What does an attacker need to exploit this vulnerability?
An attacker needs a pattern containing a newline character to be passed to Vim's glob() function. Successful exploitation may allow arbitrary shell command execution, subject to the user's 'shell' setting.
Does exploitation require user interaction or prior access?
The supplied severity vector indicates local access, low privileges, and user interaction are required. It also indicates high potential impact to confidentiality, integrity, and availability.
What is the remediation?
Update Vim to version 9.2.0202 or later, which includes the patch for this issue.