CVE-2009-0316
Reported by mitre · Published January 28, 2009
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| vim | vim | 7.2 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| vim | vim | |
| n/a | n/a | * |
Timeline
- Jan 28, 2009 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory
- Nov 5, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2009-0316
vulnetix vdb fixes CVE-2009-0316
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2009-0316/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- 33447 vdb-entryx_refsource_BID
- [oss-security] 20090126 CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) mailing-listx_refsource_MLIST
- APPLE-SA-2010-03-29-1 vendor-advisoryx_refsource_APPLE
- [debian-bugs-rc] 20080805 Bug#484305: bicyclerepair: bike.vim imports untrusted python files from cwd mailing-listx_refsource_MLIST
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- MDVSA-2009:047 vendor-advisoryx_refsource_MANDRIVA
- vim-pysyssetargv-privilege-escalation(48275) vdb-entryx_refsource_XF
- x_refsource_CONFIRM