JLSEC-2026-1867: Command Injection
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.
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.0357
Event History
Frequently Asked Questions
What must an attacker provide or convince a user to do to exploit this issue?
The attacker needs a tags file whose filename field contains backtick command syntax. A user must then resolve a tag from that file in Vim, causing the embedded command to run through the system shell.
What privileges does injected code receive?
The command runs with the full privileges of the user running Vim. The issue does not require attacker authentication, but it requires user interaction to resolve the malicious tag.
Which versions are affected, and what version fixes the issue?
Vim versions prior to 9.2.0357 are affected. The issue is addressed in Vim 9.2.0357.