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.

Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
0.491%
chance of exploitation in the next 30 days
higher than 42.8% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2009-01-28Published by the CNA02:00 UTC

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
python pythonbefore 2.6.6fixed in 2.6.6from 3.1.0 before 3.1.3fixed in 3.1.32.6.63.1.3
canonical ubuntu_linux10.04no fix listed11.04no fix listed11.10no fix listed8.04no fix listednot listednot listednot listednot listed
fedoraproject fedora13no fix listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

23 references in total; the first 20 are shown.

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources