cve.bz

CVE-2024-3651 kjd internationalized domain names in applications

7.5 highExploit referenceEPSS 1.4%Fix available

High (7.5) in kjd internationalized domain names in applications. EPSS 1.4% estimated probability of exploitation activity in the next 30 days. Fixed in idna 3.7.

On this page
A vulnerability was identified in the kjd/idna library, specifically within the `idna.encode()` function, affecting version 3.6. The issue arises from the function's handling of crafted input strings, which can lead to quadratic complexity and consequently, a denial of service condition. This vulnerability 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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-07-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-3651 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-3651?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-3651?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-3651 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
kjd/idnabefore 3.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jjg7-2v4v-x38hPyPIidna<3.73.7
PYSEC-2024-60PyPIidna>=0.1 <3.73.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10python-idna2.6-1+deb10u1DLA-3811-1
Debian12python-idna3.3-1+deb12u1DEBIAN-CVE-2024-3651
Debian13, 14python-idna3.6-2.1DEBIAN-CVE-2024-3651
Ubuntu20.04:LTSpython-idna2.8-1ubuntu0.1UBUNTU-CVE-2024-3651 USN-6780-1
Ubuntu22.04:LTSpython-idna3.3-1ubuntu0.1UBUNTU-CVE-2024-3651 USN-6780-1
Ubuntu22.04:LTSpython-pip22.0.2+dfsg-1ubuntu0.7UBUNTU-CVE-2024-3651 USN-7762-1
Ubuntu24.04:LTSpython-idna3.6-2ubuntu0.1UBUNTU-CVE-2024-3651 USN-6780-1
Ubuntu24.04:LTSpython-pip24.0+dfsg-1ubuntu1.3UBUNTU-CVE-2024-3651 USN-7762-1
UbuntuPro:16.04:LTSpython-idna2.0-3ubuntu0.1~esm1UBUNTU-CVE-2024-3651 USN-6780-1
UbuntuPro:16.04:LTSpython-pip8.1.1-2ubuntu0.6+esm8UBUNTU-CVE-2024-3651
UbuntuPro:18.04:LTSpython-idna2.6-1ubuntu0.1~esm1UBUNTU-CVE-2024-3651 USN-6780-1
UbuntuPro:18.04:LTSpython-pip9.0.1-2.3~ubuntu1.18.04.8+esm4UBUNTU-CVE-2024-3651
UbuntuPro:20.04:LTSpython-pip20.0.2-5ubuntu1.10+esm2UBUNTU-CVE-2024-3651
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.7-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8automation-hub, python39-galaxy-ng, python3x-galaxy-ng0:4.9.2-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-aiohttp, python3x-aiohttp, python39-aiohttp-debuginfo and 1 more0:3.9.5-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-gunicorn, python3x-gunicorn0:22.0.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-pillow, python3x-pillow, python39-pillow-debuginfo and 1 more0:10.3.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-pydantic, python3x-pydantic0:1.10.15-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-social-auth-app-django, python3x-social-auth-app-django0:5.4.1-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8python39-sqlparse, python3x-sqlparse0:0.5.0-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8python39-idna, python3x-idna0:3.7-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8python39-requests, python3x-requests0:2.32.2-1.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8python39-black, python3x-black0:22.8.0-2.el8apRHSA-2024:3781
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8python39-cryptography, python3x-cryptography, python39-cryptography-debuginfo and 1 more0:42.0.5-1.el8apRHSA-2024:3781
56 more for Red Hat in the JSON and on Red Hat's page.
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy, saltbundlepy-core3.11.9-1.26.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-cryptography3.3.2-1.18.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-docker7.0.0-1.8.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-idna3.4-1.9.2SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-passlib, saltbundlepy-passlib-test1.7.4-1.3.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-setuptools67.7.2-1.12.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-urllib32.0.7-1.12.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-zipp3.15.0-1.9.2SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Update, Manager Client Tools for RHEL, Liberty and Clones 9-CLIENT-TOOLSvenv-salt-minion3006.0-1.47.1SUSE-SU-2024:4029-1
SUSELinux Enterprise Micro 5.1, Linux Enterprise Micro 5.2, Linux Enterprise Micro 5.3 and 3 morepython-idna2.6-150000.3.3.1SUSE-SU-2024:1439-1
SUSELinux Enterprise Micro 5.5python-idna2.6-150000.3.3.1SUSE-SU-2024:1439-2
SUSELinux Enterprise Module for Public Cloud 12, Linux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5python-idna2.5-3.13.1SUSE-SU-2024:1428-1
4 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5, Leap 15.6python-idna3.4-150400.11.10.1SUSE-SU-2024:1939-1
openSUSELeap 15.5, Leap Micro 5.3, Leap Micro 5.4python-idna2.6-150000.3.3.1SUSE-SU-2024:1439-1
openSUSETumbleweedpython-idna3.19-1.1openSUSE-SU-2026:11711-1
openSUSETumbleweedpython-idna3.7-1.1openSUSE-SU-2024:13874-1
AlmaLinux8python3-idna2.5-7.el8_10ALSA-2024:4260
AlmaLinux8python39, python39-idle, python39-libs and 5 more3.9.19-1.module_el8.10.0+3849+a48d89aaALSA-2024:3466
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+2780+a40f65e1ALSA-2024:3466
AlmaLinux8python39-Cython0.29.21-5.module_el8.6.0+3248+c431e88cALSA-2024:3466
AlmaLinux8python39-PyMySQL0.10.1-2.module_el8.6.0+2780+a40f65e1ALSA-2024:3466
AlmaLinux8python39-attrs20.3.0-2.module_el8.6.0+2780+a40f65e1ALSA-2024:3466
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+2780+a40f65e1ALSA-2024:3466
AlmaLinux8python39-cffi1.14.3-2.module_el8.6.0+3248+c431e88cALSA-2024:3466
AlmaLinux8python39-chardet3.0.4-19.module_el8.6.0+2780+a40f65e1ALSA-2024:3466
AlmaLinux8python39-cryptography3.3.1-3.module_el8.10.0+3765+2f9a457dALSA-2024:3466
AlmaLinux8python39-idna2.10-4.module_el8.10.0+3849+a48d89aaALSA-2024:3466
AlmaLinux8python39-iniconfig1.1.1-2.module_el8.6.0+2780+a40f65e1ALSA-2024:3466
31 more for AlmaLinux in the JSON.
Rocky Linux8python-idna0:2.5-7.el8_10RLSA-2024:4260
Rocky Linux9python-idna0:2.10-7.el9_4.1RLSA-2024:3846
Alpinev3.19, v3.20, v3.21 and 3 morepy3-idna3.7-r0ALPINE-CVE-2024-3651
Azure Linux2python-idna3.7-1AZL-43201
Azure Linux2python33.9.19-13AZL-59690
Azure Linux3python-idna3.7-1AZL-43204
Azure Linux3python-pip24.0-2AZL-43210
Azure Linux3tensorflow2.16.1-7AZL-43207
Alpaquita23, streampy3-idna3.7-r0BELL-CVE-2024-3651

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerability in the idna.encode() function, allowing for resource consumption via specially crafted arguments, is categorized as a moderate severity issue due to its potential impact on system availability rather than data integrity or confidentiality. While the vulnerability can lead to a denial-of-service condition, it requires the passing of unusually large or maliciously crafted inputs to exploit. Normal usage scenarios typically do not encounter such inputs.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8python3x-idna-0:3.7-1.el8apFixed 2024-06-10RHSA-2024:3781
Red Hat Ansible Automation Platform 2.4 for RHEL 9python-idna-0:3.7-1.el9apFixed 2024-06-10RHSA-2024:3781
Red Hat Enterprise Linux 7 Extended Lifecycle Supportpython-idna-0:2.4-2.el7_9Fixed 2024-10-23RHSA-2024:8365
Red Hat Enterprise Linux 8python39:3.9-8100020240516111311.d47b87a4Fixed 2024-05-29RHSA-2024:3466
Red Hat Enterprise Linux 8python39-devel:3.9-8100020240516111311.d47b87a4Fixed 2024-05-29RHSA-2024:3466
Red Hat Enterprise Linux 8python-idna-0:2.5-7.el8_10Fixed 2024-07-02RHSA-2024:4260
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpython-idna-0:2.5-5.el8_6.1Fixed 2024-06-03RHSA-2024:3552
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicepython-idna-0:2.5-5.el8_6.1Fixed 2024-06-03RHSA-2024:3552
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionspython-idna-0:2.5-5.el8_6.1Fixed 2024-06-03RHSA-2024:3552
Red Hat Enterprise Linux 8.8 Extended Update Supportpython-idna-0:2.5-5.el8_8.1Fixed 2024-06-03RHSA-2024:3543
Red Hat Enterprise Linux 9python-idna-0:2.10-7.el9_4.1Fixed 2024-06-11RHSA-2024:3846
Red Hat Enterprise Linux 10python-idnaNot affected
Red Hat Enterprise Linux 8python27:2.7/python-idnaWill not fix
Red Hat OpenShift Container Platform 3.11python-idnaOut of support scope
Red Hat Satellite 6ansiblerole-foreman_scap_clientAffected
Red Hat Satellite 6python-idnaAffected
Red Hat Satellite 6python-idna-sslAffected
Red Hat Software Collectionsrh-python38-python-idnaNot affected
Red Hat Update Infrastructure 4 for Cloud Providerspython-idnaWill not fix
Red Hat Update Infrastructure 4 for Cloud Providerspython-idna-sslWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-3651.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON