Home / Vim / Vim / CVE-2009-0316
CVE-2009-0316: is it exploited, and which versions of Vim are affected and fixed?
CVE-2009-0316 is a vulnerability in Vim. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: vim through 7.2, vim 1.0, vim 1.22 and 18 more (NVD). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (6.9, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:51 UTC.
What is 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.
From the CVE record by mitre, last updated August 7, 2024, 04:31 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| vim | vim | through 7.2 | application |
| vim | vim | 1.0 | application |
| vim | vim | 1.22 | application |
| vim | vim | 3.0 | application |
| vim | vim | 4.0 | application |
| vim | vim | 5.0 | application |
| vim | vim | 5.1 | application |
| vim | vim | 5.2 | application |
| vim | vim | 5.3 | application |
| vim | vim | 5.4 | application |
| vim | vim | 5.5 | application |
| vim | vim | 5.6 | application |
| vim | vim | 5.7 | application |
| vim | vim | 5.8 | application |
| vim | vim | 6.0 | application |
| vim | vim | 6.1 | application |
| vim | vim | 6.2 | application |
| vim | vim | 6.3 | application |
| vim | vim | 6.4 | application |
| vim | vim | 7.0 | application |
| vim | vim | 7.1 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:04 UTC.
How severe is CVE-2009-0316?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.9 | CVSS 2.0 | AV:L/AC:M/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2009-0316 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.73% probability of exploitation activity in the next 30 days, percentile 86.5 (FIRST EPSS, scores of December 2, 2026)
Where are the vendor advisories and references?
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=493937 x_refsource_CONFIRM
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484305 x_refsource_MISC
- 33447 vdb-entry, x_refsource_BID
- [oss-security] 20090126 CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) mailing-list, x_refsource_MLIST
- APPLE-SA-2010-03-29-1 vendor-advisory, x_refsource_APPLE
- [debian-bugs-rc] 20080805 Bug#484305: bicyclerepair: bike.vim imports untrusted python files from cwd mailing-list, x_refsource_MLIST
- https://svn.pardus.org.tr/pardus/2008/applications/editors/vim/files/official/7.2.045 x_refsource_CONFIRM
- http://support.apple.com/kb/HT4077 x_refsource_CONFIRM
- MDVSA-2009:047 vendor-advisory, x_refsource_MANDRIVA
- vim-pysyssetargv-privilege-escalation(48275) vdb-entry, x_refsource_XF
- https://bugzilla.redhat.com/show_bug.cgi?id=481565 x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- January 27, 2009
- Published
- January 28, 2009, 11:00 UTC
- CVE record updated
- August 7, 2024, 04:31 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 23:04 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:51 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Vim?
- Nov 22, 2026CVE-2026-134832 Vim: incorrect Behavior Order: Validate Before Canonicalize
- Aug 19, 2026CVE-2026-43961 vim: code injection (remote code execution)
- Aug 18, 2026CVE-2026-73073 vim: code injection (remote code execution)
- Aug 11, 2026CVE-2026-73078 vim: command injection
- Aug 11, 2026CVE-2026-73077 vim: OS command injection
- Aug 11, 2026CVE-2026-73076 vim: code injection (remote code execution)
- Aug 11, 2026CVE-2026-73075 vim: buffer Underwrite
- Aug 11, 2026CVE-2026-73074 vim: integer overflow
Questions about CVE-2009-0316
Is CVE-2009-0316 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 2.73% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Vim are affected by CVE-2009-0316?
vim through 7.2, vim 1.0, vim 1.22, vim 3.0, vim 4.0, vim 5.0 and 15 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2009-0316?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2009-0316?
Medium (6.9, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2009-0316?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.