Vulnerability in Python
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 contain a path separator, which might allow local users to execute arbitrary code via a Trojan horse Python file in the current working directory.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.9 (Medium). Vector: AV:L/AC:M/Au:N/C:C/I:C/A:C. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.005, 42.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Python
- Canonical Ubuntu Linux — versions 8.04, 10.04, 11.04
- Fedoraproject Fedora — versions 13
Weakness classification (CWE)
References
- [debian-bugs] 20081112 Bug#493937: [Patch] Prevent loading of Python modules in working directory (mailing-list)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- FEDORA-2010-9652 (vendor-advisory, Mailing List, Third Party Advisory)
- secunia.com/advisories/51087 (Not Applicable, 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, Mailing List, Third Party Advisory)
- USN-1616-1 (vendor-advisory, Third Party Advisory)
- secunia.com/advisories/51040 (Not Applicable, third-party-advisory)
- GLSA-200903-41 (vendor-advisory, Third Party Advisory)
- [oss-security] 20090126 CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) (mailing-list, Mailing List, Third Party Advisory)
- ADV-2010-1448 (Permissions Required, vdb-entry)