Vulnerability Name:

CVE-2008-3074 (CCN-43838)

Assigned:2008-07-15
Published:2008-07-15
Updated:2017-09-29
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.
CVSS v3 Severity:5.9 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): Low
Integrity (I): Low
Availibility (A): Low
CVSS v2 Severity:9.3 High (CVSS v2 Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C)
7.3 High (Temporal CVSS v2 Vector: AV:N/AC:M/Au:N/C:C/I:C/A:C/E:POC/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Medium
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
4.6 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:N/C:P/I:P/A:P)
3.6 Low (CCN Temporal CVSS v2 Vector: AV:L/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
Vulnerability Type:CWE-78
Vulnerability Consequences:Gain Access
References:Source: CCN
Type: Full-Disclosure Mailing List, Wed Jul 16 2008 - 06:53:00 CDT
Vim: Improper Implementation of shellescape()/Arbitrary Code Execution

Source: CONFIRM
Type: UNKNOWN
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506919

Source: MITRE
Type: CNA
CVE-2008-3074

Source: SUSE
Type: UNKNOWN
SUSE-SR:2009:007

Source: BUGTRAQ
Type: UNKNOWN
20080701 Re: Collection of Vulnerabilities in Fully Patched Vim 7.1

Source: CCN
Type: RHSA-2008-0580
Moderate: vim security update

Source: SECUNIA
Type: UNKNOWN
34418

Source: CONFIRM
Type: UNKNOWN
http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0324

Source: DEBIAN
Type: DSA-1733
vim -- several vulnerabilities

Source: MANDRIVA
Type: UNKNOWN
MDVSA-2008:236

Source: MLIST
Type: UNKNOWN
[oss-security] 20080707 Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10

Source: MLIST
Type: Exploit, Patch
[oss-security] 20080707 Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10

Source: MLIST
Type: UNKNOWN
[oss-security] 20080708 Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10

Source: MLIST
Type: UNKNOWN
[oss-security] 20080710 Re: Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10

Source: MLIST
Type: UNKNOWN
[oss-security] 20080713 Re: Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10

Source: MLIST
Type: UNKNOWN
[oss-security] 20080715 Re: Re: More arbitrary code executions in Netrw

Source: MLIST
Type: UNKNOWN
[oss-security] 20080731 Re: Re: More arbitrary code executions in Netrw version 125, Vim 7.2a.10

Source: MLIST
Type: UNKNOWN
[oss-security] 20081015 Vim CVE issues cleanup (plugins tar.vim, zip.vim) - CVE-2008-3074 and CVE-2008-3075

Source: MLIST
Type: UNKNOWN
[oss-security] 20081020 CVE request (vim)

Source: MISC
Type: UNKNOWN
http://www.rdancer.org/vulnerablevim-shellescape.html

Source: MISC
Type: Exploit, Patch, Vendor Advisory
http://www.rdancer.org/vulnerablevim.html

Source: REDHAT
Type: UNKNOWN
RHSA-2008:0580

Source: BID
Type: UNKNOWN
32462

Source: CCN
Type: BID-32462
Vim 'tar.vim' Plugin Arbitrary Command Execution Vulnerability

Source: CCN
Type: BID-32463
Vim 'zip.vim' Plugin Arbitrary Command Execution Vulnerability

Source: CCN
Type: Vim Web site
welcome home : vim online

Source: CCN
Type: Red Hat Bugzilla Bug 467428
Bug 467428 – CVE-2008-3074 Vim tar.vim plugin: improper Implementation of shellescape() (arbitrary code execution)

Source: CONFIRM
Type: UNKNOWN
https://bugzilla.redhat.com/show_bug.cgi?id=467428

Source: XF
Type: UNKNOWN
vim-tarvim-shellescape-code-execution(43838)

Source: OVAL
Type: UNKNOWN
oval:org.mitre.oval:def:10754

Source: SUSE
Type: SUSE-SR:2009:007
SUSE Security Summary Report

Vulnerable Configuration:Configuration 1:
  • cpe:/a:vim:tar.vim:v.10:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.11:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.12:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.13:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.14:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.15:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.16:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.17:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.18:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.19:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.20:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.21:*:*:*:*:*:*:*
  • OR cpe:/a:vim:tar.vim:v.22:*:*:*:*:*:*:*
  • OR cpe:/a:vim:vim:7.0:*:*:*:*:*:*:*
  • OR cpe:/a:vim:vim:7.1:*:*:*:*:*:*:*
  • OR cpe:/a:vim:vim:7.1.266:*:*:*:*:*:*:*
  • OR cpe:/a:vim:vim:7.1.314:*:*:*:*:*:*:*
  • OR cpe:/a:vim:vim:7.2:*:*:*:*:*:*:*

  • Configuration RedHat 1:
  • cpe:/o:redhat:enterprise_linux:5:*:*:*:*:*:*:*

  • Configuration RedHat 2:
  • cpe:/o:redhat:enterprise_linux:5::client:*:*:*:*:*

  • Configuration RedHat 3:
  • cpe:/o:redhat:enterprise_linux:5::server:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:vim:vim:7.2a.013:*:*:*:*:*:*:*
  • AND
  • cpe:/o:mandrakesoft:mandrake_linux_corporate_server:3.0:*:*:*:*:*:*:*
  • OR cpe:/a:mandrakesoft:mandrake_multi_network_firewall:2.0:*:*:*:*:*:*:*
  • OR cpe:/o:mandrakesoft:mandrake_linux_corporate_server:4.0:*:*:*:*:*:*:*
  • OR cpe:/o:mandrakesoft:mandrake_linux_corporate_server:4.0::x86_64:*:*:*:*:*
  • OR cpe:/o:mandrakesoft:mandrake_linux_corporate_server:3.0::x86_64:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:5:*:*:*:*:*:*:*
  • OR cpe:/o:mandrakesoft:mandrake_linux:2008.0::x86-64:*:*:*:*:*
  • OR cpe:/o:debian:debian_linux:4.0:*:*:*:*:*:*:*
  • OR cpe:/o:redhat:enterprise_linux:5:*:client:*:*:*:*:*
  • OR cpe:/o:mandrakesoft:mandrake_linux:2008.0:*:*:*:*:*:*:*
  • OR cpe:/o:mandrakesoft:mandrake_linux:2008.1:x86_64:*:*:*:*:*:*
  • OR cpe:/o:mandrakesoft:mandrake_linux:2008.1:*:*:*:*:*:*:*
  • OR cpe:/o:mandriva:linux:2009.0:*:*:*:*:*:*:*
  • OR cpe:/o:mandriva:linux:2009.0:-:x86_64:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:20083074
    V
    CVE-2008-3074
    2015-11-16
    oval:org.mitre.oval:def:29232
    P
    RHSA-2008:0580 -- vim security update (Moderate)
    2015-08-17
    oval:org.mitre.oval:def:7596
    P
    DSA-1733 vim -- several vulnerabilities
    2015-02-23
    oval:org.mitre.oval:def:20113
    P
    DSA-1733-1 vim - multiple vulnerabilities
    2014-06-23
    oval:org.mitre.oval:def:22692
    P
    ELSA-2008:0580: vim security update (Moderate)
    2014-05-26
    oval:org.mitre.oval:def:10754
    V
    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.
    2013-04-29
    oval:org.debian:def:1733
    V
    several vulnerabilities
    2009-03-03
    oval:com.redhat.rhsa:def:20080580
    P
    RHSA-2008:0580: vim security update (Moderate)
    2008-11-25
    BACK
    vim tar.vim v.10
    vim tar.vim v.11
    vim tar.vim v.12
    vim tar.vim v.13
    vim tar.vim v.14
    vim tar.vim v.15
    vim tar.vim v.16
    vim tar.vim v.17
    vim tar.vim v.18
    vim tar.vim v.19
    vim tar.vim v.20
    vim tar.vim v.21
    vim tar.vim v.22
    vim vim 7.0
    vim vim 7.1
    vim vim 7.1.266
    vim vim 7.1.314
    vim vim 7.2
    vim vim 7.2a.013
    mandrakesoft mandrake linux corporate server 3.0
    mandrakesoft mandrake multi network firewall 2.0
    mandrakesoft mandrake linux corporate server 4.0
    mandrakesoft mandrake linux corporate server 4.0
    mandrakesoft mandrake linux corporate server 3.0
    redhat enterprise linux 5
    mandrakesoft mandrake linux 2008.0
    debian debian linux 4.0
    redhat enterprise linux 5
    mandrakesoft mandrake linux 2008.0
    mandrakesoft mandrake linux 2008.1 x86_64
    mandrakesoft mandrake linux 2008.1
    mandriva linux 2009.0
    mandriva linux 2009.0 -