Live threats

All CVEs / Python

CVE-2008-5983Python

Medium 6.9

Priority
41
CVSS 2.0
6.9
EPSS
0.5%
probability of exploitation in 30 days · percentile 35
Auth required
Yes
Published
Jan 28, 2009
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-426
Vector
AV:L/AC:M/Au:N/C:C/I:C/A:C

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python.

Affected products (CPE)

VendorProductVersions
pythonpython< 2.6.6
pythonpython≥ 3.1.0 < 3.1.3
fedoraprojectfedora13
canonicalubuntu_linux8.04
canonicalubuntu_linux10.04
canonicalubuntu_linux11.04
canonicalubuntu_linux11.10

Official sources

References

Links published by the sources. Open them with care.