Vim Shell Command Injection Vulnerability - Linux
🗓️ 02 Dec 2008 00:00:00Reported by Copyright (C) 2008 Greenbone AGType
openvas🔗 plugins.openvas.org👁 30 Views
| Reporter | Title | Published | Views | Family All 141 |
|---|---|---|---|---|
| vim -- multiple vulnerabilities in the netrw module | 16 Oct 200800:00 | – | freebsd | |
| vim -- Vim Shell Command Injection Vulnerabilities | 16 Jun 200800:00 | – | freebsd | |
| CentOS 5 : vim (CESA-2008:0580) | 6 Jan 201000:00 | – | nessus | |
| CentOS 3 / 4 : vim (CESA-2008:0617) | 23 Apr 200900:00 | – | nessus | |
| Debian DSA-1733-1 : vim - several vulnerabilities | 4 Mar 200900:00 | – | nessus | |
| FreeBSD : vim -- multiple vulnerabilities in the netrw module (0e1e3789-d87f-11dd-8ecd-00163e000016) | 2 Jan 200900:00 | – | nessus | |
| FreeBSD : vim -- Vim Shell Command Injection Vulnerabilities (30866e6c-3c6d-11dd-98c9-00163e000016) | 24 Jun 200800:00 | – | nessus | |
| Mac OS X Multiple Vulnerabilities (Security Update 2008-007) | 10 Oct 200800:00 | – | nessus | |
| Mac OS X Multiple Vulnerabilities (Security Update 2010-002) | 29 Mar 201000:00 | – | nessus | |
| Mandriva Linux Security Advisory : vim (MDVSA-2008:236-1) | 23 Apr 200900:00 | – | nessus |
10
| Source | Link |
|---|---|
| secunia | www.secunia.com/advisories/30731/ |
| securityfocus | www.securityfocus.com/bid/32462 |
| rdancer | www.rdancer.org/vulnerablevim-shellescape.html |
# SPDX-FileCopyrightText: 2008 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.900412");
script_version("2025-03-05T05:38:52+0000");
script_tag(name:"last_modification", value:"2025-03-05 05:38:52 +0000 (Wed, 05 Mar 2025)");
script_tag(name:"creation_date", value:"2008-12-02 11:52:55 +0100 (Tue, 02 Dec 2008)");
script_cve_id("CVE-2008-2712", "CVE-2008-3074", "CVE-2008-3075", "CVE-2008-3076");
script_copyright("Copyright (C) 2008 Greenbone AG");
script_tag(name:"cvss_base", value:"9.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:C/I:C/A:C");
script_category(ACT_GATHER_INFO);
script_family("General");
script_name("Vim Shell Command Injection Vulnerability - Linux");
script_xref(name:"URL", value:"http://secunia.com/advisories/30731/");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/32462");
script_xref(name:"URL", value:"http://www.rdancer.org/vulnerablevim-shellescape.html");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"executable_version_unreliable");
script_dependencies("gather-package-list.nasl");
script_mandatory_keys("login/SSH/success");
script_exclude_keys("ssh/no_linux_shell");
script_tag(name:"impact", value:"Successful exploitation will let the attacker execute arbitrary shell commands
to compromise the system.");
script_tag(name:"affected", value:"Vim version prior to 7.2 on Linux.");
script_tag(name:"insight", value:"This error is due to the 'filetype.vim', 'tar.vim', 'zip.vim', 'xpm.vim',
'xpm2.vim', 'gzip.vim', and 'netrw.vim' scripts which are insufficiently filtering special characters.");
script_tag(name:"solution", value:"Upgrade to version 7.2 or later.");
script_tag(name:"summary", value:"Vim is prone to a command injection vulnerability.");
exit(0);
}
include("ssh_func.inc");
sock = ssh_login_or_reuse_connection();
if(sock)
{
vimVer = ssh_cmd(socket:sock, cmd:"vim --version", timeout:120);
ssh_close_connection();
if("VIM" >< vimVer){
pattern = "Vi IMproved ([0-6](\..*)?|7\.[01](\..*)?)";
if(egrep(pattern:pattern, string:vimVer)){
security_message( port: 0, data: "The target host was found to be vulnerable" );
}
}
}
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Mar 2025 00:00Current
8.5High risk
Vulners AI Score8.5
CVSS 29.3
EPSS0.15044