Untrusted search path in Python - CVE-2008-5983

 

Untrusted search path in Python - CVE-2008-5983

Published: July 5, 2022 / Updated: June 3, 2025


Vulnerability identifier: #VU110156
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2008-5983
CWE-ID: CWE-426
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to execute arbitrary code.

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 software

Python
Fedora
python26

How to mitigate CVE-2008-5983

Install update from vendor's website.

python26 - update to 2.6.5-5.el5

External References

Related Security Bulletins