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
CVSSv4.0: 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/E:U/U:Clear
CVE-ID: CVE-2008-5983
CWE-ID: CWE-426
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
Python
Software vendor:
Python.org

Description

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.


Remediation

Install update from vendor's website.

External links