CVE-2008-5983

Summary

CVECVE-2008-5983
StatePUBLISHED
Assignermitre
Source PriorityCVE Program / NVD first with legacy fallback
Published2009-01-28 02:30:00 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionUntrusted 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.

Risk And Classification

Primary CVSS: v2.0 6.9 from [email protected]

AV:L/AC:M/Au:N/C:C/I:C/A:C

Problem Types: CWE-426 | n/a

CVSS v2.0 Breakdown

Access Vector
Local
Access Complexity
Medium
Authentication
None
Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:L/AC:M/Au:N/C:C/I:C/A:C

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Python Python All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
USN-1613-2: Python 2.4 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com Third Party Advisory
Security Advisory SA50858 - Ubuntu update for python - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
oss-security - Re: CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com Permissions Required
USN-1616-1: Python 3.1 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com Third Party Advisory
USN-1613-1: Python 2.5 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com Third Party Advisory
Support | Red Hat af854a3a-2127-422b-91ae-364da2661108 www.redhat.com Third Party Advisory
Security Advisory SA51087 - Ubuntu update for python3.1 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
Old Nabble - debian-bugs-rc - Bug#484305: bicyclerepair: bike.vim imports untrusted python files from cwd af854a3a-2127-422b-91ae-364da2661108 www.nabble.com Broken Link
[SECURITY] Fedora 13 Update: python-2.6.4-27.fc13 af854a3a-2127-422b-91ae-364da2661108 lists.fedoraproject.org Mailing List, Third Party Advisory
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com Permissions Required
Security Advisory SA51024 - Ubuntu update for python2.5 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
Security Advisory SA51040 - Ubuntu update for python2.4 - Secunia af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
Red Hat update for python - Advisories - Community af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
oss-security - CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
Gentoo Linux Documentation -- gedit: Untrusted search path af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org Third Party Advisory
Bug#493937: [Patch] Prevent loading of Python modules in working directo af854a3a-2127-422b-91ae-364da2661108 www.mail-archive.com
Gentoo Linux Documentation -- Eye of GNOME: Untrusted search path af854a3a-2127-422b-91ae-364da2661108 security.gentoo.org Third Party Advisory
Gentoo update for gedit - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
oss-security - Re: CVE request -- Python < 2.6 PySys_SetArgv issues (epiphany, csound, dia, eog, gedit, xchat, vim, nautilus-python, Gnumeric) af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
Bug 482814 – CVE-2008-5983 python: untrusted python modules search path af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Third Party Advisory
Fedora update for python - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Not Applicable
USN-1596-1: Python 2.6 vulnerabilities | Ubuntu af854a3a-2127-422b-91ae-364da2661108 www.ubuntu.com Third Party Advisory
Bug#493937: [Patch] Prevent loading of Python modules in working directo MITRE www.mail-archive.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report