# CVE-2020-8492: urllib basic auth regex denial of service

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.62%, higher than 94% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-01-30T00:00:00.000Z
- Modified: 2026-10-14T09:17:21.473Z
- Also known as: PSF-2020-8, BIT-LIBPYTHON-2020-8492, BIT-PYTHON-2020-8492, BIT-PYTHON-MIN-2020-8492
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- https://github.com/python/cpython: before 0b297d4ff1c0e4480ad33acae793fbaf4bf015b4; before 37fe316479e0b6906a74b0c0a5e495c55037fdfd; before 69cdeeb93e0830004a495ed854022425b93b3f3e; before b57a73694e26e8b2391731b5ee0b1be59437388e; before ea9e240aa02372440be8024acb110371f69c9d41
- python python: from 2.7.0 up to 2.7.17; from 3.5.0 up to 3.5.9; from 3.6.0 up to 3.6.10; from 3.7.0 up to 3.7.6; from 3.8.0 up to 3.8.1
- opensuse leap: 15.1
- canonical ubuntu_linux: 12.04; 14.04; 16.04; 18.04; 19.10; 20.04
- fedoraproject fedora: 31; 32
- debian debian_linux: 9.0
- libpython (Bitnami): from 2.7.0 before 2.7.18; from 3.5.0 before 3.5.10; from 3.6.0 before 3.6.11; from 3.7.0 before 3.7.7; from 3.8.0 before 3.8.2
- python (Bitnami): from 2.7.0 before 2.7.18; from 3.5.0 before 3.5.10; from 3.6.0 before 3.6.11; from 3.7.0 before 3.7.7; from 3.8.0 before 3.8.2
- python-min (Bitnami): from 2.7.0 before 2.7.18; from 3.5.0 before 3.5.10; from 3.6.0 before 3.6.11; from 3.7.0 before 3.7.7; from 3.8.0 before 3.8.2

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 7.1 High `AV:N/AC:M/Au:N/C:N/I:N/A:C`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://python-security.readthedocs.io/vuln/urllib-basic-auth-regex.html> (exploit, advisory, third-party-advisory)
- <https://bugs.python.org/issue39503> (advisory, issue-tracking, vendor-advisory, web)
- <https://github.com/python/cpython/pull/18284> (advisory, patch, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20200221-0001/> (advisory, third-party-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00003.html> (advisory, third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4333-1/> (advisory, third-party-advisory, vendor-advisory)
- <https://usn.ubuntu.com/4333-2/> (advisory, third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202005-09> (advisory, third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APGWEMYZIY5VHLCSZ3HD67PA5Z2UQFGH/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7WOKDEXLYW5UQ4S7PA7E37IITOC7C56J/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UESGYI5XDAHJBATEZN3MHNDUBDH47AS6/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5NSAX4SC3V64PGZUPH7PRDLSON34Q5A/> (vendor-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html> (advisory, mailing-list, third-party-advisory)
- <https://lists.apache.org/thread.html/rdb31a608dd6758c6093fd645aea3fbf022dd25b37109b6aaea5bc0b5%40%3Ccommits.cassandra.apache.org%3E> (mailing-list, web)
- <https://lists.apache.org/thread.html/rfec113c733162b39633fd86a2d0f34bf42ac35f711b3ec1835c774da%40%3Ccommits.cassandra.apache.org%3E> (mailing-list, web)
- <https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html> (mailing-list, web)
- <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- <https://bugs.python.org/issue38826> (report)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-8492> (web)

## Sources

- CVE List: [CVE-2020-8492](https://www.cve.org/CVERecord?id=CVE-2020-8492), CVE Terms of Use, modified 2026-10-14
- Python Software Foundation: [PSF-2020-8](https://osv.dev/vulnerability/PSF-2020-8), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2020-8492](https://nvd.nist.gov/vuln/detail/CVE-2020-8492), Public domain, modified 2026-10-14
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2020-8492](https://osv.dev/vulnerability/BIT-LIBPYTHON-2020-8492), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-2020-8492](https://osv.dev/vulnerability/BIT-PYTHON-2020-8492), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2020-8492](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2020-8492), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-8492 · Whole record: https://cve.day/CVE-2020-8492.json · Rebuilt by cve.day 2026-11-25T22:57:50.725Z
