Vim PySys_SetArgv() function privilege escalation

vim-pysyssetargv-privilege-escalation (48275) The risk level is classified as MediumMedium Risk

Description:

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.

*CVSS:

Base Score: 6.9
  Access Vector: Local
  Access Complexity: Medium
  Authentication: None
  Confidentiality Impact: Complete
  Integrity Impact: Complete
  Availability Impact: Complete
 
Temporal Score: 5.3
  Exploitability: Unproven
  Remediation Level: Temporary-Fix
  Report Confidence: Confirmed

Consequences:

Gain Privileges

Remedy:

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.

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

Platforms Affected:

  • 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

Reported:

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

Return to the main page

* 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.

About IBM Internet Security Systems

IBM Internet Security Systems is a trusted security advisor to thousands of the world's leading businesses and governments, helping to provide pre-emptive protection for networks, desktops and servers. The IBM Proventia? integrated security platform is designed to automatically protect against both known and unknown threats, helping to keep networks up and running and shield customers from online attacks before they impact business assets. IBM Internet Security Systems products and services are based on the proactive security intelligence of its X-Force? research and development team ? an unequivocal world authority in vulnerability and threat research. The IBM Internet Security Systems product line is also complemented by comprehensive Managed Security Services and Professional Security Services. For more information, visit the IBM Internet Security Systems Web site at www.iss.net or call 800-776-2362.