CVE-2009-0316: Medium severity vim Vim vulnerability
Untrusted search path vulnerability in src/ifpython.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 PySysSetArgv function (CVE-2008-5983), as demonstrated by an erroneous search path for plugin/bike.vim in bicyclerepair.
Other sources
Untrusted search path vulnerability in the of Vim allows local users to execute arbitrary code via a Trojan horse Python file in the current working directory, related to an erroneous setting of sys.path by the PySysSetArgv function.
References (test case, PoC): http://www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html
Proposed patch: The Debian patch for similar dia's Python related issue, available at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=5;filename=pythonpath.diff;att=1;bug=504251
should be sufficient to resolve this issue.
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
SUSE Vimto a version that resolves this vulnerability.Fixed in 7.2.045
Event History
Frequently Asked Questions
What is the severity of CVE-2009-0316?
CVE-2009-0316 is classified as a high severity vulnerability due to its potential to allow local users to execute arbitrary code.
How do I fix CVE-2009-0316?
To fix CVE-2009-0316, update Vim to version 7.2.045 or later.
Who is affected by CVE-2009-0316?
CVE-2009-0316 affects local users of Vim versions prior to 7.2.045 who can place malicious Python files in the current working directory.
What exploit mechanism is used in CVE-2009-0316?
CVE-2009-0316 exploits the untrusted search path vulnerability through the PySys_SetArgv function.
Can remote users exploit CVE-2009-0316?
No, CVE-2009-0316 can only be exploited by local users who have access to the Vim application on the machine.