BIT-python-min-2020-15801: Critical severity Python Software Foundation Python vulnerability
In Python 3.8.4, sys.path restrictions specified in a python38.pth file are ignored, allowing code to be loaded from arbitrary locations. The <executable-name>.pth file (e.g., the python.pth file) is not affected.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Python 3.8.4 deployments that rely on a python38._pth file to restrict sys.path are exposed. Deployments using an executable-name-specific ._pth file, such as python._pth, are not affected.
What does an attacker need to exploit it?
The issue allows code to be loaded from arbitrary locations when the python38._pth path restrictions are ignored. The provided severity vector indicates exploitation can be performed over the network with low complexity, without privileges or user interaction.
How can I determine whether my deployment is affected?
Check whether the runtime is Python 3.8.4 and whether its path restriction policy is implemented through a python38._pth file. If the deployment instead uses an executable-name ._pth file, such as python._pth, this issue does not affect that file.