CVE-2008-5983 Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepends an empty string to sys.path when the argv[0] argument does not co...
MediumCVSS 6.9
EPSS 0.49%
- Published
- Updated
- Exploit status
- No public exploit known
Description
Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepends an empty string to sys.path when the argv[0] argument does not contain a path separator, which might allow local users to execute arbitrary code via a Trojan horse Python file in the current working directory.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| python | < 2.6.6 | 2.6.6 |
| python | >= 3.1.0, < 3.1.3 | 3.1.3 |
| fedoraproject fedora | = 13 | No fix listed |
| Canonical Ubuntu Linux | = 8.04 | No fix listed |
| Canonical Ubuntu Linux | = 10.04 | No fix listed |
| Canonical Ubuntu Linux | = 11.04 | No fix listed |
| Canonical Ubuntu Linux | = 11.10 | No fix listed |
References
- FEDORA-2010-9652 mailing-list third-party-advisory vendor-advisory
- 34522 not-applicable third-party-advisory
- 40194 not-applicable third-party-advisory
- 42888 not-applicable third-party-advisory
- 50858 not-applicable third-party-advisory
- 51024 not-applicable third-party-advisory
- 51040 not-applicable third-party-advisory
- 51087 not-applicable third-party-advisory
- GLSA-200903-41 third-party-advisory vendor-advisory
- GLSA-200904-06 third-party-advisory vendor-advisory
- [debian-bugs] 20081112 Bug#493937: [Patch] Prevent loading of Python modules in working directory mailing-list
- [debian-bugs-rc] 20080805 Bug#484305: bicyclerepair: bike.vim imports untrusted python files from cwd broken-link mailing-list
- [oss-security] 20090126 CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) mailing-list third-party-advisory
- [oss-security] 20090128 Re: CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) mailing-list third-party-advisory
- [oss-security] 20090130 Re: CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) mailing-list third-party-advisory
- RHSA-2011:0027 third-party-advisory vendor-advisory
- USN-1596-1 third-party-advisory vendor-advisory
- USN-1613-1 third-party-advisory vendor-advisory
- USN-1613-2 third-party-advisory vendor-advisory
- USN-1616-1 third-party-advisory vendor-advisory
- ADV-2010-1448 permissions-required vdb-entry
- ADV-2011-0122 permissions-required vdb-entry
- bugzilla.redhat.com issue-tracking third-party-advisory