Vulnerabilities · 2020 · Python
CVE-2020-8492
Python vulnerability
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.
Affected products
Python, Leap, Ubuntu Linux, Fedora, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- bugs.python.org/issue39503 · Vendor Advisory
- github.com/python/cpython/pull/18284 · Patch
- lists.opensuse.org/opensuse-security-announce/2020-03/msg00003.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2020/07/msg00011.html · Third Party Advisory
- python-security.readthedocs.io/vuln/urllib-basic-auth-regex.html · Exploit
- security.gentoo.org/glsa/202005-09 · Third Party Advisory
- security.netapp.com/advisory/ntap-20200221-0001/ · Third Party Advisory
- usn.ubuntu.com/4333-1/ · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2020-8492
- cve.org/CVERecord?id=CVE-2020-8492
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.