ID CVE-2008-3074
Summary 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.
References
Vulnerable Configurations
  • cpe:2.3:a:vim:tar.vim:v.10:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.10:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.11:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.11:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.12:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.12:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.13:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.13:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.14:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.14:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.15:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.15:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.16:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.16:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.17:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.17:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.18:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.18:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.19:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.19:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.20:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.20:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.21:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.21:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:tar.vim:v.22:*:*:*:*:*:*:*
    cpe:2.3:a:vim:tar.vim:v.22:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:vim:7.0:*:*:*:*:*:*:*
    cpe:2.3:a:vim:vim:7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:vim:7.1:*:*:*:*:*:*:*
    cpe:2.3:a:vim:vim:7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:vim:7.1.266:*:*:*:*:*:*:*
    cpe:2.3:a:vim:vim:7.1.266:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:vim:7.1.314:*:*:*:*:*:*:*
    cpe:2.3:a:vim:vim:7.1.314:*:*:*:*:*:*:*
  • cpe:2.3:a:vim:vim:7.2:*:*:*:*:*:*:*
    cpe:2.3:a:vim:vim:7.2:*:*:*:*:*:*:*
CVSS
Base: 9.3 (as of 29-09-2017 - 01:31)
Impact:
Exploitability:
CWE CWE-78
CAPEC
  • OS Command Injection
    In this type of an attack, an adversary injects operating system commands into existing application functions. An application that uses untrusted input to build command strings is vulnerable. An adversary can leverage OS command injection in an application to elevate privileges, execute arbitrary commands and compromise the underlying operating system.
  • Argument Injection
    An attacker changes the behavior or state of a targeted application through injecting data or command syntax through the targets use of non-validated and non-filtered arguments of exposed services or methods.
  • Command Delimiters
    An attack of this type exploits a programs' vulnerabilities that allows an attacker's commands to be concatenated onto a legitimate command with the intent of targeting other resources such as the file system or database. The system that uses a filter or a blacklist input validation, as opposed to whitelist validation is vulnerable to an attacker who predicts delimiters (or combinations of delimiters) not present in the filter or blacklist. As with other injection attacks, the attacker uses the command delimiter payload as an entry point to tunnel through the application and activate additional attacks through SQL queries, shell commands, network scanning, and so on.
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
  • Exploiting Multiple Input Interpretation Layers
    An attacker supplies the target software with input data that contains sequences of special characters designed to bypass input validation logic. This exploit relies on the target making multiples passes over the input data and processing a "layer" of special characters with each pass. In this manner, the attacker can disguise input that would otherwise be rejected as invalid by concealing it with layers of special/escape characters that are stripped off by subsequent processing steps. The goal is to first discover cases where the input validation layer executes before one or more parsing layers. That is, user input may go through the following logic in an application: <parser1> --> <input validator> --> <parser2>. In such cases, the attacker will need to provide input that will pass through the input validator, but after passing through parser2, will be converted into something that the input validator was supposed to stop.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
cvss-vector via4 AV:N/AC:M/Au:N/C:C/I:C/A:C
oval via4
accepted 2013-04-29T04:08:24.295-04:00
class vulnerability
contributors
  • name Aharon Chernin
    organization SCAP.com, LLC
  • name Dragos Prisaca
    organization G2, Inc.
definition_extensions
  • comment The operating system installed on the system is Red Hat Enterprise Linux 5
    oval oval:org.mitre.oval:def:11414
  • comment The operating system installed on the system is CentOS Linux 5.x
    oval oval:org.mitre.oval:def:15802
  • comment Oracle Linux 5.x
    oval oval:org.mitre.oval:def:15459
description in this CVE description and in external mappings to this identifier.
family unix
id oval:org.mitre.oval:def:10754
status accepted
submitted 2010-07-09T03:56:16-04:00
title in this CVE description and in external mappings to this identifier.
version 18
redhat via4
advisories
rhsa
id RHSA-2008:0580
rpms
  • vim-X11-2:7.0.109-4.el5_2.4z
  • vim-common-2:7.0.109-4.el5_2.4z
  • vim-debuginfo-2:7.0.109-4.el5_2.4z
  • vim-enhanced-2:7.0.109-4.el5_2.4z
  • vim-minimal-2:7.0.109-4.el5_2.4z
refmap via4
bid 32462
bugtraq 20080701 Re: Collection of Vulnerabilities in Fully Patched Vim 7.1
confirm
mandriva MDVSA-2008:236
misc
mlist
  • [oss-security] 20080707 Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10
  • [oss-security] 20080708 Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10
  • [oss-security] 20080710 Re: Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10
  • [oss-security] 20080713 Re: Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10
  • [oss-security] 20080715 Re: Re: More arbitrary code executions in Netrw
  • [oss-security] 20080731 Re: Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10
  • [oss-security] 20081015 Vim CVE issues cleanup (plugins tar.vim, zip.vim) - CVE-2008-3074 and CVE-2008-3075
  • [oss-security] 20081020 CVE request (vim)
secunia 34418
suse SUSE-SR:2009:007
Last major update 29-09-2017 - 01:31
Published 21-02-2009 - 22:30
Last modified 29-09-2017 - 01:31
Back to Top