CVE-2008-3076 Command injection in n/a
User-assisted attackers can execute arbitrary code via shell metacharacters in filenames within Vim's Netrw plugin commands.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2008-3076?
CVE-2008-3076 is a critical command injection vulnerability in Vim Vim, published on 21 Feb 2009. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
The Netrw plugin 125 in netrw.vim in Vim 7.2a.10 allows user-assisted attackers to execute arbitrary code via shell metacharacters in filenames used by the execute and system functions within the (1) mz and (2) mc commands, as demonstrated by the netrw.v2 and netrw.v3 test cases. NOTE: this issue reportedly exists because of an incomplete fix for CVE-2008-2712.
Weakness: CWE-78
Which versions are affected by CVE-2008-3076?
It affects 1 product.
Products include Vim Vim.
How do I fix CVE-2008-3076?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2008-3076 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-3076 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Vim Vim
Sources
Also known as DEBIAN-CVE-2008-3076, GHSA-f5qf-9pc8-pr89.