7.5high
Slow IDNA decoding with large strings
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 3.33% (higher than 88% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- PSF-2022-10BIT-LIBPYTHON-2022-45061BIT-PYTHON-2022-45061BIT-PYTHON-MIN-2022-45061
Description
An issue was discovered in Python before 3.11.1. An unnecessary quadratic algorithm exists in one path when processing some inputs to the IDNA (RFC 3490) decoder, such that a crafted, unreasonably long name being presented to the decoder could lead to a CPU denial of service. Hostnames are often supplied by remote servers that could be controlled by a malicious actor; in such a scenario, they could trigger excessive CPU consumption on the client attempting to make use of an attacker-supplied supposed hostname. For example, the attack payload could be placed in the Location header of an HTTP response with status code 302. A fix is planned in 3.11.1, 3.10.9, 3.9.16, 3.8.16, and 3.7.16.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| https://github.com/python/cpython | before 82ca2839c9ec6bf9a9400e791a52411824df67f3, before 9bb8e18ca46fe66fa6802602f8a7228a24dd785f, before a6f6c3a3d6f2b580f2d87885c9b8a9350ad7bf15, before b0b590be9597fd5919228d251812dd54145f70a7, before c09dba57cfbbf74273ce44b1f48f71b46806605c | Python Software Foundation |
| python python | up to 3.7.15, from 3.8.0 up to 3.8.15, from 3.9.0 up to 3.9.15, from 3.10.0 up to 3.10.8, 3.11.0 | NVD |
| fedoraproject fedora | 35, 36, 37 | NVD |
| netapp active_iq_unified_manager | Not specified | NVD |
| netapp e-series_performance_analyzer | Not specified | NVD |
| netapp element_software | Not specified | NVD |
| netapp hci | Not specified | NVD |
| netapp management_services_for_element_software | Not specified | NVD |
| netapp ontap_select_deploy_administration_utility | Not specified | NVD |
| netapp bootstrap_os | Not specified | NVD |
| libpython (Bitnami) | before 3.7.16, from 3.10.0 before 3.10.9, from 3.11.0 before 3.11.1, from 3.8.0 before 3.8.16, from 3.9.0 before 3.9.16 | Bitnami Vulnerability Database |
| python (Bitnami) | before 3.7.16, from 3.10.0 before 3.10.9, from 3.11.0 before 3.11.1, from 3.8.0 before 3.8.16, from 3.9.0 before 3.9.16 | Bitnami Vulnerability Database |
| python-min (Bitnami) | before 3.7.16, from 3.10.0 before 3.10.9, from 3.11.0 before 3.11.1, from 3.8.0 before 3.8.16, from 3.9.0 before 3.9.16 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
An issue was discovered in Python before 3.11.1. An unnecessary quadratic algorithm exists in one path when processing some inputs to the IDNA (RFC 3490) decoder, such that a crafted, unreasonably long name being presented to the decoder could lead to a CPU denial of service. Hostnames are often supplied by remote servers that could be controlled by a malicious actor; in such a scenario, they could trigger excessive CPU consumption on the client attempting to make use of an attacker-supplied supposed hostname. For example, the attack payload could be placed in the Location header of an HTTP response with status code 302. A fix is planned in 3.11.1, 3.10.9, 3.9.16, 3.8.16, and 3.7.16.
NVD (es)
Se descubrió un problema en Python antes de la versión 3.11.1. Existe un algoritmo cuadrático innecesario en una ruta cuando se procesan algunas entradas al decodificador IDNA (RFC 3490), de modo que un nombre elaborado e irrazonablemente largo que se presente al decodificador podría provocar una denegación de servicio de la CPU. Los nombres de host suelen ser proporcionados por servidores remotos que podrían estar controlados por un actor malicioso; en tal escenario, podrían desencadenar un consumo excesivo de CPU en el cliente que intenta hacer uso de un supuesto nombre de host proporcionado por el atacante. Por ejemplo, el payload del ataque podría colocarse en el encabezado Ubicación de una respuesta HTTP con el código de estado 302. Está prevista una solución en 3.11.1, 3.10.9, 3.9.16, 3.8.16 y 3.7.16.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-45061 changed 2026-10-14 | CVE Terms of Use |
| Python Software Foundation | PSF-2022-10 changed 2025-10-09 | CC-BY-4.0 |
| NVD | CVE-2022-45061 changed 2026-10-14 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPYTHON-2022-45061 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-2022-45061 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PYTHON-MIN-2022-45061 changed 2026-09-08 | Apache-2.0 |