JLSEC-2026-1870: Command Injection
Vim is an open source, command line text editor. Prior to version 9.2.0435, an OS command injection vulnerability exists in Vim's :find command-line completion. When the path option contains backtick-enclosed shell commands, those commands are executed during file name completion. Because the path option lacks the PSECURE flag, it can be set from a modeline, allowing an attacker who controls the contents of a file to execute arbitrary shell commands when the user opens that file in Vim and triggers :find completion. This issue has been patched in version 9.2.0435.
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.0435
Event History
Frequently Asked Questions
What user interaction is required for exploitation?
An attacker must cause a user to open an attacker-controlled file in Vim and then trigger command-line completion for the :find command. The malicious file can set the path option through a modeline, after which backtick-enclosed commands in that option are executed during completion.
Does exploitation require an existing account or elevated privileges?
No privileges are required according to the supplied vector. The issue is locally exploitable with low attack complexity, but it requires user interaction.
Which version fixes the issue?
The issue is patched in Vim version 9.2.0435. Versions prior to 9.2.0435 are described as affected.