ID CVE-2008-6235
Summary The Netrw plugin (netrw.vim) in Vim 7.0 and 7.1 allows user-assisted attackers to execute arbitrary commands via shell metacharacters in a filename used by the (1) "D" (delete) command or (2) b:netrw_curdir variable, as demonstrated using the netrw.v4 and netrw.v5 test cases.
References
Vulnerable Configurations
  • 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:*:*:*:*:*:*:*
CVSS
Base: 9.3 (as of 29-09-2017 - 01:33)
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:12:39.250-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 The Netrw plugin (netrw.vim) in Vim 7.0 and 7.1 allows user-assisted attackers to execute arbitrary commands via shell metacharacters in a filename used by the (1) "D" (delete) command or (2) b:netrw_curdir variable, as demonstrated using the netrw.v4 and netrw.v5 test cases.
family unix
id oval:org.mitre.oval:def:11247
status accepted
submitted 2010-07-09T03:56:16-04:00
title The Netrw plugin (netrw.vim) in Vim 7.0 and 7.1 allows user-assisted attackers to execute arbitrary commands via shell metacharacters in a filename used by the (1) "D" (delete) command or (2) b:netrw_curdir variable, as demonstrated using the netrw.v4 and netrw.v5 test cases.
version 18
redhat via4
advisories
bugzilla
id 467439
title CVE-2008-6235 Vim netrw.vim plugin: lack of sanitization throughout netrw.vim can lead to arbitrary code execution
oval
OR
  • comment Red Hat Enterprise Linux must be installed
    oval oval:com.redhat.rhba:tst:20070304026
  • AND
    • comment Red Hat Enterprise Linux 5 is installed
      oval oval:com.redhat.rhba:tst:20070331005
    • OR
      • AND
        • comment vim-X11 is earlier than 2:7.0.109-4.el5_2.4z
          oval oval:com.redhat.rhsa:tst:20080580001
        • comment vim-X11 is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070346002
      • AND
        • comment vim-common is earlier than 2:7.0.109-4.el5_2.4z
          oval oval:com.redhat.rhsa:tst:20080580003
        • comment vim-common is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070346004
      • AND
        • comment vim-enhanced is earlier than 2:7.0.109-4.el5_2.4z
          oval oval:com.redhat.rhsa:tst:20080580005
        • comment vim-enhanced is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070346006
      • AND
        • comment vim-minimal is earlier than 2:7.0.109-4.el5_2.4z
          oval oval:com.redhat.rhsa:tst:20080580007
        • comment vim-minimal is signed with Red Hat redhatrelease key
          oval oval:com.redhat.rhsa:tst:20070346008
rhsa
id RHSA-2008:0580
released 2008-11-25
severity Moderate
title RHSA-2008:0580: vim security update (Moderate)
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
misc
mlist
  • [oss-security] 20081016 CVE request - Vim netrw.plugin
  • [oss-security] 20081020 CVE request (vim)
secunia 34418
suse SUSE-SR:2009:007
Last major update 29-09-2017 - 01:33
Published 21-02-2009 - 23:30
Last modified 29-09-2017 - 01:33
Back to Top