Skip to content

Untrusted search path vulnerability in the PySys_SetArgv...

Moderate severity Unreviewed Published May 17, 2022 to the GitHub Advisory Database • Updated Jan 27, 2023

Package

No package listedSuggest a package

Affected versions

Unknown

Patched versions

Unknown

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.

References

Published by the National Vulnerability Database Jan 28, 2009
Published to the GitHub Advisory Database May 17, 2022
Last updated Jan 27, 2023

Severity

Moderate

EPSS score

0.057%
(26th percentile)

Weaknesses

CVE ID

CVE-2008-5983

GHSA ID

GHSA-4jhg-wfq8-3vgm

Source code

No known source code

Dependabot alerts are not supported on this advisory because it does not have a package from a supported ecosystem with an affected and fixed version.

Learn more about GitHub language support

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.