CVE-2008-3074: Vim - Command Injection
- Cve: CVE-2008-3074
- Name: Vim - Command Injection
- Description: The shellescape function in Vim 7.0 through 7.2, including 7.2a.10, allows user-assisted attackers to execute arbitrary code via the "!" (exclamation point) shell metacharacter in (1) the filename of a tar archive and possibly (2) the filename of the first file in a tar archive, which is not properly handled by the VIM TAR plugin (tar.vim) v.10 through v.22, as demonstrated by the shellescape, tarplugin.v2, tarplugin, and tarplugin.updated test cases. NOTE: this issue reportedly exists because of an incomplete fix for CVE-2008-2712. NOTE: this issue has the same root cause as CVE-2008-3075. NOTE: due to the complexity of the associated disclosures and the incomplete information related to them, there may be inaccuracies in this CVE description and in external mappings to this identifier.
- Impact: Attackers can execute arbitrary code on the system, potentially leading to full compromise or malicious control.
- Remediation: Update to the latest version of Vim where this issue is fixed or apply security patches addressing this vulnerability.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: user_interaction
- Requirements: Attacker needs user assistance to process malicious filenames
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.3
- Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:C/I:C/A:C
- Epss score: 0.03841
- Epss percentile: 0.90388
- Assignee: [email protected]
- Published at: 2009-02-21T22:30:00Z
- Age in days: 6485
- Modified at: 2026-06-16T22:55:01Z
- Patch available: yes
- Public exploits total: 2
- References total: 21
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2008-3074
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2008/07/07/4 | nvd | 2009-02-21 |
| http://www.rdancer.org/vulnerablevim.html | nvd | 2009-02-21 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| vim:vim | = 7.2, = 7.1.314, = 7.1.266, = 7.1, = 7.0 | no | nvd | /v1/products/vim/vim |
| vim:tar.vim | = v.22, = v.21, = v.20, = v.19, = v.18, = v.17, = v.16, = v.15, = v.14, = v.13, = v.12, = v.11, = v.10 | no | nvd | /v1/products/vim/tar.vim |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2009-02-21
- Remote: yes
- Exposed hosts: 367
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports