CVE-2008-5983

Python <2.7 - Code Injection

Title source: llm

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.

Scores

EPSS 0.0012
EPSS Percentile 30.7%

Classification

CWE
CWE-426
Status draft

Affected Products (6)

python/python < 2.6.6
fedoraproject/fedora
canonical/ubuntu_linux
canonical/ubuntu_linux
canonical/ubuntu_linux
canonical/ubuntu_linux

Timeline

Published Jan 28, 2009
Tracked Since Feb 18, 2026