BIT-libpython-2020-15523: High severity Python Software Foundation CPython vulnerability
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
Event History
Frequently Asked Questions
Who is affected by this issue?
The issue affects Windows deployments where CPython is embedded in a native application and Py_SetPath has been used. It does not occur when using python.exe from a standard, non-embedded Python installation on Windows.
What must an attacker be able to do to exploit it?
An attacker would need to cause a Trojan horse python3.dll to be used by the embedded application. The vulnerable condition arises when python3X.dll uses an invalid search path while loading python3.dll after Py_SetPath is used.
Which CPython releases are identified as affected?
Affected releases are 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.