Vim multiple scripts command execution
| vim-scripts-command-execution (43083) |
Description:
Vim could allow a remote attacker to execute arbitrary commands on the system, caused by the improper escaping of special characters in filenames sent to the execute statement by the filetype.vim, tar.vim, zip.vim, xpm.vim, xpm2.vim, gzip.vim, and netrw.vim scripts. By persuading a victim to open a specially-crafted file containing shell metacharacters, a remote attacker could exploit this vulnerability to inject and execute arbitrary shell commands on the system.
Platforms Affected:
- Apple, Mac OS X 10.5
- Apple, Mac OS X 10.5.1
- Apple, Mac OS X 10.5.2
- Apple, Mac OS X 10.5.3
- Apple, Mac OS X 10.5.4
- Apple, Mac OS X 10.5.5
- Apple, Mac OS X Server 10.5
- Apple, Mac OS X Server 10.5.1
- Apple, Mac OS X Server 10.5.2
- Apple, Mac OS X Server 10.5.3
- Apple, Mac OS X Server 10.5.4
- Apple, Mac OS X Server 10.5.5
- Canonical, Ubuntu 6.06 LTS
- Canonical, Ubuntu 7.10
- Canonical, Ubuntu 8.04 LTS
- Canonical, Ubuntu 8.10
- Debian, Debian Linux 4.0
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Linux 2008.0
- MandrakeSoft, Mandrake Linux 2008.1
- MandrakeSoft, Mandrake Linux 2008.1 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 3.0
- MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0
- MandrakeSoft, Mandrake Multi Network Firewall 2.0
- Mandriva, Linux 2009.0 X86_64
- Mandriva, Linux 2009.0
- RedHat, Enterprise Linux 2.1 WS
- RedHat, Enterprise Linux 2.1 AS
- RedHat, Enterprise Linux 2.1 ES
- RedHat, Enterprise Linux 3 WS
- RedHat, Enterprise Linux 3 Desktop
- RedHat, Enterprise Linux 3 AS
- RedHat, Enterprise Linux 3 ES
- RedHat, Enterprise Linux 4 Desktop
- RedHat, Enterprise Linux 4 ES
- RedHat, Enterprise Linux 4 WS
- RedHat, Enterprise Linux 4 AS
- RedHat, Enterprise Linux 5
- RedHat, Enterprise Linux 5 Client
- RedHat, Linux Advanced Workstation 2.1 Itanium
- Vim, Vim 6.4
- Vim, Vim 7.1.298
- VMware, ESX Server 2.5.5
- VMware, ESX Server 3.0.2
- VMware, ESX Server 3.0.3
- VMware, ESX Server 3.5
Remedy:
Apply the patch for this vulnerability (7.1.299), available from the Vim FTP Web site. See References.
For other distributions:
Apply the appropriate update for your system. See References.
Consequences:
Gain Access
References:
- Apple Web site, About Security Update 2008-007 at http://support.apple.com/kb/HT3216.
- BugTraq Mailing List, Wed Jul 23 2008 - 13:29:01 CDT, Vim: Flawed Fix of Arbitrary Code Execution Vulnerability in filetype.vim at http://archives.neohapsis.com/archives/bugtraq/2008-07/0213.html.
- Full-Disclosure Mailing List, Fri Jun 13 2008 - 17:43:35 CDT, Collection of Vulnerabilities in Fully Patched Vim 7.1 at http://archives.neohapsis.com/archives/fulldisclosure/2008-06/0188.html.
- rdancer Advisories, 2008-06-13, Collection of Vulnerabilities in Fully Patched Vim 7.1 at http://www.rdancer.org/vulnerablevim.html.
- Vim FTP Web site, Patch 7.1.299 at ftp://ftp.vim.org/pub/vim/patches/7.1/7.1.299.
- Vim Web site, welcome home : vim online at http://www.vim.org/.
- VMSA-2009-0004, ESX Service Console updates for openssl, bind, and vim at http://www.vmware.com/security/advisories/VMSA-2009-0004.html.
- ASA-2008-457: vim security update (RHSA-2008-0618)
- ASA-2009-001: vim security update (RHSA-2008-0617)
- BID-29715: Vim Vim Script Multiple Command Execution Vulnerabilities
- BID-31681: RETIRED: Apple Mac OS X 2008-007 Multiple Security Vulnerabilities
- CVE-2008-2712: Vim 7.1.314, 6.4, and other versions allows user-assisted remote attackers to execute arbitrary commands via Vim scripts that do not properly sanitize inputs before invoking the execute or system functions, as demonstrated using (1) filetype.vim, (3) xpm.vim, (4) gzip_vim, and (5) netrw. NOTE: the originally reported version was 7.1.314, but the researcher actually found this set of issues in 7.1.298. NOTE: the zipplugin issue (originally vector 2 in this identifier) has been subsumed by CVE-2008-3075.
- DSA-1733: vim -- several vulnerabilities
- MDVSA-2008:236: vim
- MDVSA-2008:236-1: vim
- RHSA-2008-0580: Moderate: vim security update
- RHSA-2008-0617: Moderate: vim security update
- RHSA-2008-0618: Moderate: vim security update
- SA30731: Vim Shell Command Injection Vulnerabilities
- SA32222: Apple Mac OS X Security Update Fixes Multiple Vulnerabilities
- SA33410: Avaya Products Vim Multiple Vulnerabilities
- SECTRACK ID: 1020293: Vim Flaw in Quoting Vim Script Lets Remote Users Cause Arbitrary Commands to Be Executed in Certain Cases
- SUSE-SR:2009:007: SUSE Security Summary Report
- USN-712-1: Vim vulnerabilities
- VUPEN/ADV-2008-1851: Vim Filename Handling Shell Command Injection Vulnerabilities
- VUPEN/ADV-2008-2780: Apple Mac OS X Code Execution and Security Bypass Vulnerabilities
- VUPEN/ADV-2009-0033: Avaya Products Vim Data Handling Code Execution Vulnerabilities
Reported:
Jun 13, 2008
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
