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...
Medium CVSS 6.5
- CVE id
- CVE-2020-8492
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
>= 2.7.0, <= 2.7.17 >= 3.5.0, <= 3.5.9 >= 3.6.0, <= 3.6.10 >= 3.7.0, <= 3.7.6 >= 3.8.0, <= 3.8.1 |
after 2.7.17, 3.5.9, 3.6.10, 3.7.6, 3.8.1 |
How to fix it
Upgrade Python to a release newer than the last affected update of the line you run (2.7.17, 3.5.9, 3.6.10, 3.7.6, 3.8.1).
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2020-8492 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2020-8492
- Web: https://bugs.python.org/issue39503
- Web: https://github.com/python/cpython/pull/18284
- Web: https://lists.apache.org/thread.html/rdb31a608dd6758c6093fd645aea3fbf022dd25b37109b6aaea5bc0b5%40%3Ccommits.cassandra.apache.org%3E
- Web: https://lists.apache.org/thread.html/rfec113c733162b39633fd86a2d0f34bf42ac35f711b3ec1835c774da%40%3Ccommits.cassandra.apache.org%3E
- Web: https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html
- Web: https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7WOKDEXLYW5UQ4S7PA7E37IITOC7C56J/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A5NSAX4SC3V64PGZUPH7PRDLSON34Q5A/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APGWEMYZIY5VHLCSZ3HD67PA5Z2UQFGH/
- Web: https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UESGYI5XDAHJBATEZN3MHNDUBDH47AS6/
- Web: https://python-security.readthedocs.io/vuln/urllib-basic-auth-regex.html
- Web: https://security.gentoo.org/glsa/202005-09
- Web: https://security.netapp.com/advisory/ntap-20200221-0001/
- Web: https://usn.ubuntu.com/4333-1/
- Web: https://usn.ubuntu.com/4333-2/
- Web: https://bugs.python.org/issue39503
- Web: https://github.com/python/cpython/pull/18284
- Web: https://lists.apache.org/thread.html/rdb31a608dd6758c6093fd645aea3fbf022dd25b37109b6aaea5bc0b5%40%3Ccommits.cassandra.apache.org%3E
- Web: https://lists.apache.org/thread.html/rfec113c733162b39633fd86a2d0f34bf42ac35f711b3ec1835c774da%40%3Ccommits.cassandra.apache.org%3E
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.