CVEvulnerability

CVE-2008-5983

6.9 MEDIUM Published 2009-01-28 Modified 2026-06-16 Official page ↗
Status
Modified
Published
2009-01-28
Last modified
2026-06-16
Assigner
[email protected]
CVSS 2.0 ([email protected])
6.9 MEDIUM — AV:L/AC:M/Au:N/C:C/I:C/A:C
Weaknesses
CWE-426

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.

Affected configurations

• python python (< 2.6.6) • python python (>= 3.1.0 < 3.1.3) • fedoraproject fedora 13 • canonical ubuntu linux 8.04 • canonical ubuntu linux 10.04 • canonical ubuntu linux 11.04 • canonical ubuntu linux 11.10

Related

Weakness · CWE (1)

  • CWE-426 Untrusted Search Path weakness

References