CVE-2008-5983

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.

Category

6.9
CVSS
Severity: Medium
CVSS 2.0 •
EPSS 0.15%
Vendor Advisory fedoraproject.org Vendor Advisory ubuntu.com Vendor Advisory gentoo.org Vendor Advisory gentoo.org Vendor Advisory ubuntu.com Vendor Advisory redhat.com Vendor Advisory ubuntu.com Vendor Advisory ubuntu.com
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
http://www.mail-archive.com/debian-bugs-dist%40lists.debian.org/msg586010.html mailing list
https://bugzilla.redhat.com/show_bug.cgi?id=482814 issue tracking third party advisory
http://lists.fedoraproject.org/pipermail/package-announce/2010-June/042751.html mailing list third party advisory vendor advisory
http://secunia.com/advisories/51087 third party advisory not applicable
http://www.openwall.com/lists/oss-security/2009/01/30/2 third party advisory mailing list
http://www.ubuntu.com/usn/USN-1616-1 third party advisory vendor advisory
http://secunia.com/advisories/51040 third party advisory not applicable
http://security.gentoo.org/glsa/glsa-200903-41.xml third party advisory vendor advisory
http://www.openwall.com/lists/oss-security/2009/01/26/2 third party advisory mailing list
http://www.vupen.com/english/advisories/2010/1448 vdb entry permissions required
http://secunia.com/advisories/50858 third party advisory not applicable
http://www.nabble.com/Bug-484305%3A-bicyclerepair%3A-bike.vim-imports-untrusted-python-files-from-cwd-td18848099.html mailing list broken link
http://security.gentoo.org/glsa/glsa-200904-06.xml third party advisory vendor advisory
http://www.vupen.com/english/advisories/2011/0122 vdb entry permissions required
http://www.openwall.com/lists/oss-security/2009/01/28/5 third party advisory mailing list
http://secunia.com/advisories/34522 third party advisory not applicable
http://secunia.com/advisories/42888 third party advisory not applicable
http://www.ubuntu.com/usn/USN-1596-1 third party advisory vendor advisory
http://secunia.com/advisories/40194 third party advisory not applicable
http://www.redhat.com/support/errata/RHSA-2011-0027.html third party advisory vendor advisory
http://www.ubuntu.com/usn/USN-1613-2 third party advisory vendor advisory
http://secunia.com/advisories/51024 third party advisory not applicable
http://www.ubuntu.com/usn/USN-1613-1 third party advisory vendor advisory

Frequently Asked Questions

What is the severity of CVE-2008-5983?
CVE-2008-5983 has been scored as a medium severity vulnerability.
How to fix CVE-2008-5983?
To fix CVE-2008-5983, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2008-5983 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2008-5983 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.