Vulnerabilities · 2008 · Python
CVE-2008-5983
Python vulnerability
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
Python, Fedora, Ubuntu Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- lists.fedoraproject.org/pipermail/package-announce/2010-June/042751.html · Third Party Advisory
- security.gentoo.org/glsa/glsa-200903-41.xml · Third Party Advisory
- security.gentoo.org/glsa/glsa-200904-06.xml · Third Party Advisory
- www.openwall.com/lists/oss-security/2009/01/26/2 · Third Party Advisory
- www.openwall.com/lists/oss-security/2009/01/28/5 · Third Party Advisory
- www.openwall.com/lists/oss-security/2009/01/30/2 · Third Party Advisory
- www.redhat.com/support/errata/RHSA-2011-0027.html · Third Party Advisory
- www.ubuntu.com/usn/USN-1596-1 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2008-5983
- cve.org/CVERecord?id=CVE-2008-5983
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.