PT-2024-3833 · Pypi+10 · Python-Idna+10

Guido Vranken

·

Published

2024-04-10

·

Updated

2026-06-05

·

CVE-2024-3651

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions python-idna version 3.6
Description The issue arises from the idna.encode() function's handling of crafted input strings, which can lead to quadratic complexity and consequently, a denial of service condition. This is triggered by a crafted input that causes the idna.encode() function to process the input with considerable computational load, significantly increasing the processing time in a quadratic manner relative to the input size. The vulnerability may allow a remote attacker to cause a denial of service.
Recommendations For version 3.6, consider updating to version 3.7, where the function has been refined to reject such strings without the associated resource consumption. As a temporary workaround, enforce a length limit of 253 characters on domain names prior to passing them to the idna.encode() function to prevent significant resource consumption.

Exploit

Fix

DoS

Resource Exhaustion

Weakness Enumeration

Related Identifiers

ALSA-2024:3466
ALSA-2024:3846
ALSA-2024:4260
ALT-PU-2024-13879
AZL-43201
AZL-43204
AZL-43207
AZL-43210
AZL-59690
BDU:2024-04211
CESA-2024_3466
CESA-2024_4260
CVE-2024-3651
DLA-3811-1
GHSA-JJG7-2V4V-X38H
INFSA-2024_3466
INFSA-2024_3846
INFSA-2024_4260
MGASA-2024-0245
OESA-2024-1606
OESA-2024-1653
OESA-2024-1655
OESA-2024-1673
OESA-2024-1801
OESA-2024-1802
OPENSUSE-SU-2024:13874-1
OPENSUSE-SU-2024_1439-1
OPENSUSE-SU-2024_1939-1
PYSEC-2024-60
RHSA-2024:3466
RHSA-2024:3543
RHSA-2024:3552
RHSA-2024:3781
RHSA-2024:3846
RHSA-2024:4260
RHSA-2024:8365
RHSA-2024_3466
RHSA-2024_3846
RHSA-2024_4260
RLSA-2024:3466
RLSA-2024:3846
ROSA-SA-2024-2531
SUSE-SU-2024:1428-1
SUSE-SU-2024:1439-1
SUSE-SU-2024:1439-2
SUSE-SU-2024:1939-1
SUSE-SU-2024:4020-1
SUSE-SU-2024:4021-1
SUSE-SU-2024:4029-1
SUSE-SU-2024_1428-1
SUSE-SU-2024_1439-1
SUSE-SU-2024_1939-1
USN-6780-1
USN-7762-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Python-Idna