CVE-2008-5983

python: untrusted python modules search path

Published Jan 28, 2009 CVSS 2.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2008-5953 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.
Ubuntu USN Ubuntu USN USN-1596-1 Python 2.6 vulnerabilities
Ubuntu USN Ubuntu USN USN-1613-1 Python 2.5 vulnerabilities
Ubuntu USN Ubuntu USN USN-1613-2 Python 2.4 vulnerabilities
Ubuntu USN Ubuntu USN USN-1616-1 Python 3.1 vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 7, 2024, 11:13 AM
Reserved
Jan 27, 2009, 12:00 AM
Status
Modified
Published
Jan 28, 2009, 2:30 AM
Modified
Jun 16, 2026, 11:01 PM
Severity
Low
Public date
Aug 6, 2008, 12:00 AM