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
| Vector | AV: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
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu
Python-Idna