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%
Priority
27/100 medium
how it is computed
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

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

Sources

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