Feed
7.5HIGH
CVE-2020-7212Uncontrolled Resource Consumption in urllib3
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 3.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 3.4%
- percentile 90%
- Fix
- Named by a source
- CVE published 6 Mar 2020
Reference
None of the "Needs attention" rules apply right now.
EPSS 3.4% (+3) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- urllib3 (PyPI): upgrade to 1.25.8 or later on your release line.
- Patch: https://github.com/urllib3/urllib3/commit/a74c9cfbaed9f811e7563cfc3dce894928e0221a
Who should check
urllib3 (PyPI) pkg:pypi/urllib3
- Affected>= 1.25.2, < 1.25.8Fixed in1.25.8OSV (PYSEC-2020-149)
Confirmed facts
- CVSS
- 7.5 HIGH (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-hmv2-79q8-fv6g)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-400
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)The _encode_invalid_chars function in util/url.py in the urllib3 library 1.25.2 through 1.25.7 for Python allows a denial of service (CPU consumption) because of an inefficient algorithm. The percent_encodings array contains all matches of percent encodings. It is not deduplicated. For a URL of length N, the size of percent_encodings may be up to O(N). The next step (normalize existing percent-encoded bytes) also takes up to O(N) for each step, so the total time is O(N^2). If percent_encodings were deduplicated, the time to compute _encode_invalid_chars would be O(kN), where k is at most 484 ((10+6*2)^2).
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-7212
- patchhttps://github.com/urllib3/urllib3/commit/a74c9cfbaed9f811e7563cfc3dce894928e0221a
- advisoryhttps://github.com/advisories/GHSA-hmv2-79q8-fv6g
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2020-149.yaml
- otherhttps://github.com/urllib3/urllib3
- otherhttps://github.com/urllib3/urllib3/blob/master/CHANGES.rst
- otherhttps://pypi.org/project/urllib3/1.25.8
- otherhttps://pypi.org/project/urllib3/1.25.8/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-hmv2-79q8-fv6g (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2020-149 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 37 min ago · osv 37 min ago · nvd 6 min ago · epss 36 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-hmv2-79q8-fv6g, PYSEC-2020-149