CVE-2020-7212Python Urllib3
Alta 7.5 Sin autenticación
Seguir: esta CVE · Python · Python Urllib3 Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.4% probabilidad de explotación en 30 días · percentil 90
- Requiere autenticación
- No
- Publicada
- 6 mar 2020
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-400
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Qué pasa
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).
Qué hacer
- Aplica la actualización de seguridad del fabricante para Urllib3.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | urllib3 |
≥ 1.25.2 < 1.25.8 |
1.25.8 |
pip install "urllib3>=1.25.8" |
| PyPI | urllib3 |
≥ 1.25.2 < 1.25.8 |
1.25.8 |
pip install "urllib3>=1.25.8" |
Según OSV / GitHub Advisories (GHSA-hmv2-79q8-fv6g, PYSEC-2020-149). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| python | urllib3 | ≥ 1.25.2 ≤ 1.25.7 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Release Notes Third Party Advisory
- github.com Patch Third Party Advisory
- pypi.org Release Notes Vendor Advisory