CVE-2008-5983 json
Untrusted search path vulnerability in the PySys_SetArgv API function in Python 2.6 and earlier, and possibly later versions, prepends an e…
published 2009-01-28 17 y ago modified 2026-06-16 4 mo ago also EUVD-2008-5953
- cvss
- 6.9
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- python python 2.6.6, 3.1.3
- python RHEL 5 2.4.3-43.el5
- tkinter RHEL 5 2.4.3-43.el5
- python-libs RHEL 5 2.4.3-43.el5
- python-tools RHEL 5 2.4.3-43.el5
red hat advisories RHSA-2011:0027
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-5983 updated cvss 3.7
python: untrusted python modules search path
-
Red Hat Enterprise Linux (v. 5 server) python 2.4.3-43.el5, tkinter 2.4.3-43.el5, python-libs 2.4.3-43.el5, python-tools 2.4.3-43.el5 Red Hat Enterprise Linux Desktop (v. 5 client) python 2.4.3-43.el5, tkinter 2.4.3-43.el5, python-libs 2.4.3-43.el5, python-tools 2.4.3-43.el5 Red Hat Enterprise Linux Desktop Workstation (v. 5 client) python 2.4.3-43.el5, tkinter 2.4.3-43.el5, python-libs 2.4.3-43.el5, python-tools 2.4.3-43.el5fixed: vendor fix RHSA-2011:0027
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.49% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 6.9 | AV:L/AC:M/Au:N/C:C/I:C/A:C |
Classification
- Weakness
-
- CWE-426 Untrusted Search Path
References
-
lists.fedoraproject.org
/pipermail/package-announce/2010-June/042751.html
vendor-advisory, mailing-list, third-party-advisory
-
ubuntu.com
/usn/USN-1616-1
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/glsa-200903-41.xml
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/glsa-200904-06.xml
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-1596-1
vendor-advisory, third-party-advisory
-
redhat.com
/support/errata/RHSA-2011-0027.html
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-1613-2
vendor-advisory, third-party-advisory
-
ubuntu.com
/usn/USN-1613-1
vendor-advisory, third-party-advisory
-
mail-archive.com
/debian-bugs-dist%40lists.debian.org/msg586010.html
mailing-list
-
bugzilla.redhat.com
/show_bug.cgi?id=482814
issue-tracking, third-party-advisory
-
secunia.com
/advisories/51087
third-party-advisory, not-applicable
-
openwall.com
/lists/oss-security/2009/01/30/2
mailing-list, third-party-advisory
-
secunia.com
/advisories/51040
third-party-advisory, not-applicable
-
openwall.com
/lists/oss-security/2009/01/26/2
mailing-list, third-party-advisory
-
vupen.com
/english/advisories/2010/1448
vdb-entry, permissions-required
-
secunia.com
/advisories/50858
third-party-advisory, not-applicable
-
nabble.com
/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html
mailing-list, broken-link
-
vupen.com
/english/advisories/2011/0122
vdb-entry, permissions-required
-
openwall.com
/lists/oss-security/2009/01/28/5
mailing-list, third-party-advisory
-
secunia.com
/advisories/34522
third-party-advisory, not-applicable
-
secunia.com
/advisories/42888
third-party-advisory, not-applicable
-
secunia.com
/advisories/40194
third-party-advisory, not-applicable
-
secunia.com
/advisories/51024
third-party-advisory, not-applicable
Sources
- CVE List CVE-2008-5983
- NVD CVE-2008-5983
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.