← Vulnerability feed

Vulnerability record · CVE-2008-5983 · published 28 January 2009

CVE-2008-5983: Python untrusted search path vulnerability

Python · Python

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.

6.9 CVSS 2.0 Medium EPSS 0.49% · top 57.3% CWE-426 · Untrusted search path
6.9CVSS 2.0 base score
0.49%EPSS exploitation probability, 30 days
NoNot in CISA KEV
3Affected product versions listed by NVD
46References
16 Jun 2026Last modified by NVD

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.

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

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://lists.fedoraproject.org/pipermail/package-announce/2010-June/042751.html Mailing ListThird Party Advisory
http://secunia.com/advisories/34522 Not Applicable
http://secunia.com/advisories/40194 Not Applicable
http://secunia.com/advisories/42888 Not Applicable
http://secunia.com/advisories/50858 Not Applicable
http://secunia.com/advisories/51024 Not Applicable
http://secunia.com/advisories/51040 Not Applicable
http://secunia.com/advisories/51087 Not Applicable
http://security.gentoo.org/glsa/glsa-200903-41.xml Third Party Advisory
http://security.gentoo.org/glsa/glsa-200904-06.xml Third Party Advisory
http://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg586010.html
http://www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html Broken Link
http://www.openwall.com/lists/oss-security/2009/01/26/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2009/01/28/5 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2009/01/30/2 Mailing ListThird Party Advisory
http://www.redhat.com/support/errata/RHSA-2011-0027.html Third Party Advisory
http://www.ubuntu.com/usn/USN-1596-1 Third Party Advisory
http://www.ubuntu.com/usn/USN-1613-1 Third Party Advisory
http://www.ubuntu.com/usn/USN-1613-2 Third Party Advisory
http://www.ubuntu.com/usn/USN-1616-1 Third Party Advisory
http://www.vupen.com/english/advisories/2010/1448 Permissions Required
http://www.vupen.com/english/advisories/2011/0122 Permissions Required
https://bugzilla.redhat.com/show_bug.cgi?id=482814 Issue TrackingThird Party Advisory
http://lists.fedoraproject.org/pipermail/package-announce/2010-June/042751.html Mailing ListThird Party Advisory
http://secunia.com/advisories/34522 Not Applicable
http://secunia.com/advisories/40194 Not Applicable
http://secunia.com/advisories/42888 Not Applicable
http://secunia.com/advisories/50858 Not Applicable
http://secunia.com/advisories/51024 Not Applicable
http://secunia.com/advisories/51040 Not Applicable
http://secunia.com/advisories/51087 Not Applicable
http://security.gentoo.org/glsa/glsa-200903-41.xml Third Party Advisory
http://security.gentoo.org/glsa/glsa-200904-06.xml Third Party Advisory
http://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg586010.html
http://www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html Broken Link
http://www.openwall.com/lists/oss-security/2009/01/26/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2009/01/28/5 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2009/01/30/2 Mailing ListThird Party Advisory
http://www.redhat.com/support/errata/RHSA-2011-0027.html Third Party Advisory
http://www.ubuntu.com/usn/USN-1596-1 Third Party Advisory

Track CVE-2008-5983 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed10.0CVE-2015-3306ProFTPD mod_copy arbitrary file read and writeThe mod_copy module in ProFTPD 1.3.5 fails to restrict the SITE CPFR and SITE CPTO commands, letting remote attackers copy arbitrary files on the ser…KEVEPSS 99%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2021-42013Apache HTTP Server path traversal and RCE via incomplete fixThe fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside…KEVEPSS 100%analysed9.8CVE-2021-41773Apache HTTP Server 2.4.49 path traversal and RCEA path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like direc…KEVEPSS 100%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed

Source: NIST National Vulnerability Database (record CVE-2008-5983), CISA KEV, FIRST EPSS (scores of 2026-11-16). This page is refreshed as NVD updates the record.