Vim PySys_SetArgv() function privilege escalation
|vim-pysyssetargv-privilege-escalation (48275)||Medium Risk|
Vim could allow a local attacker to gain elevated privileges on the system, caused by an untrusted search path vulnerability in the Python module related to the PySys_SetArgv() function when setting sys.path. By placing a Python file in the application's working directory containing the same name as an imported file, an attacker could exploit this vulnerability to execute arbitrary Python code on the system with privileges of the application.
Upgrade to the latest version of Vim (7.2.45 or later), available from the Vim SVN Repository.See References.
For other distributions:
Apply the appropriate update for your system. See References.
- Apple Web site: About the security content of Security Update 2010-002 / Mac OS X v10.6.3.
- Debian Bug report logs - #493937: bicyclerepair: bike.vim imports untrusted python files from cwd.
- Red Hat Bugzilla Bug 481565: vim: untrusted python modules search path.
- Vim SVN Repository: Revision 59086: /2008/applications/editors/vim/files/official/7.2.045.
- Vim Web site: welcome home : vim online.
- BID-33447: Vim 'PySys_SetArgv' Remote Command Execution Vulnerability
- CVE-2009-0316: Untrusted search path vulnerability in src/if_python.c in the Python interface in Vim before 7.2.045 allows local users to execute arbitrary code via a Trojan horse Python file in the current working directory, related to a vulnerability in the PySys_SetArgv function (CVE-2008-5983), as demonstrated by an erroneous search path for plugin/bike.vim in bicyclerepair.
- MDVSA-2009:047: vim
- MDVSA-2009:047-1: vim
- Apple Mac OS X 10.5.8
- Apple Mac OS X Server 10.5.8
- MandrakeSoft Mandrake Linux 2008.0 X86_64
- MandrakeSoft Mandrake Linux 2008.0
- MandrakeSoft Mandrake Linux 2008.1 X86_64
- MandrakeSoft Mandrake Linux 2008.1
- 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
- Mandriva Linux 2009.0
- Mandriva Linux 2009.0 X86_64
- Vim Vim 7.0
- Vim Vim 7.1
- Vim Vim 7.1.298
- Vim Vim 7.1.299
- Vim Vim 7.1.300
- Vim Vim 7.1.314
- Vim Vim 7.2
- Vim Vim 7.2.10
- Vim Vim 7.2a.10
- Vim Vim 7.2a.13
- Vim Vim 7.2c.002
Jan 26, 2009
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 ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.