PT-2009-1458 · Python+1 · Python+1

Jan Lieskovsky

·

Published

2009-01-28

·

Updated

2022-07-05

·

CVE-2008-5983

CVSS v2.0

6.9

Medium

VectorAV:L/AC:M/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions Python versions 2.6 and earlier
Description The issue is related to an untrusted search path vulnerability in the PySys SetArgv API function. When the argv[0] argument does not contain a path separator, an empty string is prepended to sys.path. This might allow local users to execute arbitrary code via a Trojan horse Python file in the current working directory.
Recommendations For Python versions 2.6 and earlier, consider updating to a version where this issue is resolved, or as a temporary workaround, restrict the execution of Python files from untrusted sources in the current working directory to minimize the risk of exploitation.

Fix

Untrusted Search Path

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2008-5983
RHSA-2011:0027
RHSA-2011_0027

Affected Products

Python
Red Hat