
CVE catalog
CVE-2020-7212
python-urllib3: CVE-2020-7212
- Severity
- Low · CVSS 0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.37% · Oct 25, 2026
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).
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | python-urllib3 | sid | 2.8.0-2 | fixed |
| Debian | python-urllib3 | forky | 2.8.0-2 | fixed |
| Debian | python-urllib3 | trixie | 2.3.0-3+deb13u2 | fixed |
| Debian | python-urllib3 | trixie-security | 2.3.0-3+deb13u2 | fixed |
| Debian | python-urllib3 | bookworm | 1.26.12-1+deb12u4 | fixed |
| Debian | python-urllib3 | bookworm-security | 1.26.12-1+deb12u4 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | python-urllib3 | source | sid | 1.25.8-1 | not yet assigned | Not reported | Not reported |
| Debian | python-urllib3 | source | forky | 1.25.8-1 | not yet assigned | Not reported | Not reported |
| Debian | python-urllib3 | source | trixie | 1.25.8-1 | not yet assigned | Not reported | Not reported |
| Debian | python-urllib3 | source | bookworm | 1.25.8-1 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [python3-urllib3]Unknown
Source package: [python-urllib3]
Details (4)
1.26.12-1+deb12u4· all · bookwormFixed · Fixed:
1.25.8-1dsa · python-urllib3 · debian · bookworm; dsa · python-urllib3 · debian · 12
1.26.12-1+deb12u4· all · bookwormFixed · Fixed:
1.25.8-1dsa · python-urllib3 · debian · bookworm; dsa · python-urllib3 · debian · 12
1.26.12-1+deb12u4· all · bookworm-securityFixed · Fixed:
1.25.8-1dsa · python-urllib3 · debian · bookworm; dsa · python-urllib3 · debian · 12
1.26.12-1+deb12u4· all · bookworm-securityFixed · Fixed:
1.25.8-1dsa · python-urllib3 · debian · bookworm; dsa · python-urllib3 · debian · 12
[Debian 13 (Trixie)]
- [python3-urllib3]Unknown
Source package: [python-urllib3]
Details (4)
2.3.0-3+deb13u2· all · trixieFixed · Fixed:
1.25.8-1dsa · python-urllib3 · debian · 13
2.3.0-3+deb13u2· all · trixieFixed · Fixed:
1.25.8-1dsa · python-urllib3 · debian · 13
2.3.0-3+deb13u2· all · trixie-securityFixed · Fixed:
1.25.8-1dsa · python-urllib3 · debian · 13
2.3.0-3+deb13u2· all · trixie-securityFixed · Fixed:
1.25.8-1dsa · python-urllib3 · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2020-7212]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2020-7212]
- [https://security-tracker.debian.org/tracker/CVE-2020-7212]
- [https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-7212.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]