BIT-python-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 affected by this issue?
The issue affects Python 3.8.4 deployments that rely on a python38._pth file to restrict sys.path. The executable-specific <executable-name>._pth file, such as python._pth, is not affected.
What must an attacker be able to do to exploit the issue?
An attacker must be able to place or make Python load code from an arbitrary location that should have been excluded by the intended sys.path restrictions. Because the python38._pth restrictions are ignored, that code may be loaded.
How can I determine whether my configuration is exposed?
Check whether the environment uses Python 3.8.4 and depends on a python38._pth file for sys.path isolation. If it instead uses an executable-specific file such as python._pth, this issue does not affect that file.