PT-2020-6268 · Python+9 · Python+9
Ben Caller
·
Published
2020-01-30
·
Updated
2026-05-18
·
CVE-2020-8492
CVSS v2.0
7.1
High
| Vector | AV:N/AC:M/Au:N/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
Python versions 2.7 through 2.7.17
Python versions 3.5 through 3.5.9
Python versions 3.6 through 3.6.10
Python versions 3.7 through 3.7.6
Python versions 3.8 through 3.8.1
Description
The issue is related to an uncontrolled consumption of resources in the Python interpreter. It allows an HTTP server to conduct Regular Expression Denial of Service (ReDoS) attacks against a client because of
urllib.request.AbstractBasicAuthHandler catastrophic backtracking. This can be exploited by a remote attacker to cause a denial of service.Recommendations
For Python versions 2.7 through 2.7.17, consider disabling the
urllib.request.AbstractBasicAuthHandler to minimize the risk of exploitation until a patch is available.
For Python versions 3.5 through 3.5.9, consider disabling the urllib.request.AbstractBasicAuthHandler to minimize the risk of exploitation until a patch is available.
For Python versions 3.6 through 3.6.10, consider disabling the urllib.request.AbstractBasicAuthHandler to minimize the risk of exploitation until a patch is available.
For Python versions 3.7 through 3.7.6, consider disabling the urllib.request.AbstractBasicAuthHandler to minimize the risk of exploitation until a patch is available.
For Python versions 3.8 through 3.8.1, consider disabling the urllib.request.AbstractBasicAuthHandler to minimize the risk of exploitation until a patch is available.
As a temporary workaround, consider restricting access to the vulnerable urllib.request module to minimize the risk of exploitation.Exploit
Fix
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Python
Red Hat
Rocky Linux
Suse
Ubuntu