REDHAT-BUG-2443455: Command Injection
Vim is an open source, command line text editor. Prior to version 9.2.0073, an OS command injection vulnerability exists in the netrw standard plugin bundled with Vim. By inducing a user to open a crafted URL (e.g., using the scp:// protocol handler), an attacker can execute arbitrary shell commands with the privileges of the Vim process. Version 9.2.0073 fixes the issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
vimto a version that resolves this vulnerability.Fixed in 9.2.0073
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Users who open attacker-controlled URLs in Vim are exposed, particularly URLs handled by the bundled netrw plugin such as scp:// URLs. Successful exploitation runs shell commands with the privileges of the Vim process.
What does an attacker need to do to exploit it?
An attacker needs to induce a user to open a crafted URL in Vim. The provided example uses the scp:// protocol handler, which is processed by netrw.
Which Vim versions are affected?
Vim versions prior to 9.2.0073 are affected. Version 9.2.0073 fixes the issue.