BIT-libpython-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 behavior?
Python 3.8.4 deployments that rely on a python38._pth file to restrict sys.path are affected. Deployments using the executable-specific <executable-name>._pth file, such as python._pth, are not affected.
What does an attacker need to exploit this issue?
The issue allows code to be loaded from arbitrary locations when the intended sys.path restrictions in python38._pth are ignored. The provided data does not identify any required privileges or user interaction.
What can be done if patching is not immediately possible?
Do not rely on python38._pth to enforce sys.path restrictions in Python 3.8.4. The executable-specific <executable-name>._pth file, such as python._pth, is identified as unaffected.