{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2020-7212","published":"2020-03-06T20:15:12.707000Z","last_modified":"2026-06-17T03:24:31.450000Z","status":"Modified","cvss":{"version":"3.1","score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-400"],"cpes":[{"criteria":"cpe:2.3:a:python:urllib3:*:*:*:*:*:*:*:*","part":"a","vendor":"python","product":"urllib3","version_start_including":"1.25.2","version_end_including":"1.25.7"}],"cpes_truncated":false,"vendors":["python"],"products":["python/urllib3"],"epss":{"score":0.03371,"percentile":0.89526,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-hmv2-79q8-fv6g","ecosystem":"PyPI","name":"urllib3","purl":"pkg:pypi/urllib3","ranges":[{"introduced":"1.25.2","fixed":"1.25.8"}],"versions":["1.25.2","1.25.3","1.25.4","1.25.5","1.25.6","1.25.7"],"versions_truncated":false},{"advisory":"PYSEC-2020-149","ecosystem":"PyPI","name":"urllib3","purl":"pkg:pypi/urllib3","ranges":[{"introduced":"1.25.2","fixed":"1.25.8"}],"versions":["1.25.2","1.25.3","1.25.4","1.25.5","1.25.6","1.25.7"],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2020-7212/","html_en":"/en/cve/CVE-2020-7212/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-7212","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-7212"},"untrusted":{"vendor_name":"Python","product_name":"Urllib3","desc_en":"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).","affected":[],"references":[{"url":"https://github.com/urllib3/urllib3/blob/master/CHANGES.rst","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/urllib3/urllib3/commit/a74c9cfbaed9f811e7563cfc3dce894928e0221a","tags":["Patch","Third Party Advisory"]},{"url":"https://pypi.org/project/urllib3/1.25.8/","tags":["Release Notes","Vendor Advisory"]}]}}