PSF-2020-4: High severity Python Software Foundation CPython vulnerability

Published Jul 4, 2020
·
Updated

In Python 3.6 through 3.6.10, 3.7 through 3.7.8, 3.8 through 3.8.4rc1, and 3.9 through 3.9.0b4 on Windows, a Trojan horse python3.dll might be used in cases where CPython is embedded in a native application. This occurs because python3X.dll may use an invalid search path for python3.dll loading (after PySetPath has been used). NOTE: this issue CANNOT occur when using python.exe from a standard (non-embedded) Python installation on Windows.

Affected Software

1 affected component
Python Software Foundation CPython>=3.6<=3.6.10, >=3.7<=3.7.8, >=3.8<=3.8.4rc1, >=3.9<=3.9.0b4

Event History

Jul 4, 2020
CVE Published
via OSV·11:15 PM
Data Sourced
via OSV·11:15 PM
DescriptionSeverity

Frequently Asked Questions

1

Which deployments are exposed to this issue?

The issue affects CPython embedded in a native application on Windows, in the listed Python release ranges. Standard use of python.exe from a non-embedded Python installation on Windows cannot be affected.

2

What would an attacker need to exploit it?

An attacker would need to cause a Trojan horse python3.dll to be used by the embedded application after Py_SetPath has been used. The vulnerable behavior involves an invalid search path when python3X.dll loads python3.dll.

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