Resource exhaustion in Python
CVE-2020-8492
Python 2.7 through 2.7.17, 3.5 through 3.5.9, 3.6 through 3.6.10, 3.7 through 3.7.6, and 3.8 through 3.8.1 allows an HTTP server to conduct Regular Expression Denial of Service (ReDoS) attacks against a client because of urllib.request.AbstractBasicAuthHandler catastrophic backtracking.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.066, 94.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Python
- Canonical Ubuntu Linux — versions 12.04, 14.04, 16.04
- Debian Linux — versions 9.0
- Fedoraproject Fedora — versions 31, 32
- openSUSE Leap — versions 15.1
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (doyensec/regexploit, engn33r/awesome-redos-security, retr0-13/regexploit). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugs.python.org/issue39503 (Issue Tracking, Vendor Advisory)
- python-security.readthedocs.io/vuln/urllib-basic-auth-regex.html (Exploit, Third Party Advisory)
- github.com/python/cpython/pull/18284 (Patch, Third Party Advisory)
- security.netapp.com/advisory/ntap-20200221-0001/ (Third Party Advisory)
- openSUSE-SU-2020:0274 (vendor-advisory, Third Party Advisory)
- USN-4333-1 (vendor-advisory, Third Party Advisory)
- USN-4333-2 (vendor-advisory, Third Party Advisory)
- GLSA-202005-09 (vendor-advisory, Third Party Advisory)
- FEDORA-2020-98e0f0f11b (vendor-advisory)
- FEDORA-2020-6a88dad4a0 (vendor-advisory)