BIT-libpython-2020-15801: Critical severity Python Software Foundation Python vulnerability

Published Jul 17, 2020
·
Updated

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

1 affected component
Python Software Foundation Python=3.8.4

Event History

Jul 17, 2020
CVE Published
via OSV·03:15 AM
Data Sourced
via OSV·03:15 AM
DescriptionSeverity

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203