{"answers":{"affected":"3 open source packages ship an affected version, including idna. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-3651 in the wild and no public exploit code.","fix":"Upgrade idna to 3.7 or later.","what":"CVE-2024-3651 is a medium-severity denial of service vulnerability in kjd/idna, published on 7 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-3651 and fix it if it is affected.\n\nWhat it is: CVE-2024-3651 is a medium-severity denial of service vulnerability in kjd/idna, published on 7 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-3651 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- idna (PyPI): affected all versions; fixed in 3.7\n- idna (PyPI): affected all versions; fixed in 3.7\n- idna (PyPI): affected from 0.1; fixed in 3.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-3651/ (Markdown: https://insights.sbomify.com/CVE-2024-3651/index.md)","id":"CVE-2024-3651","markdown":"https://insights.sbomify.com/CVE-2024-3651/index.md","name":"CVE-2024-3651","record":{"aliases":["ALPINE-CVE-2024-3651","ALSA-2024:3846","ALSA-2024:4260","AZL-43201","AZL-43204","AZL-43207","AZL-43210","AZL-59690","BELL-CVE-2024-3651","CLSA-2025-1752451926","CLSA-2025-1752451928","CLSA-2025-1758672729","CLSA-2025-1763568610","CLSA-2025-1763943127","CLSA-2026-1791551168","DEBIAN-CVE-2024-3651","DLA-3811-1","ECHO-c0f0-b4e6-96db","GHSA-jjg7-2v4v-x38h","MGASA-2024-0245","MINI-7c4f-4575-28jm","MINI-r5qr-22fp-r9ch","OESA-2024-1606","OESA-2024-1653","OESA-2024-1655","OESA-2024-1673","OESA-2024-1801","OESA-2024-1802","PYSEC-2024-60","RHSA-2024:3543","RHSA-2024:3552","RHSA-2024:3846","RHSA-2024:4260","RHSA-2024:8365","RLSA-2024:3846","RLSA-2024:4260","ROOT-APP-PYPI-CVE-2024-3651","SUSE-SU-2024:1428-1","SUSE-SU-2024:1439-1","SUSE-SU-2024:1439-2","SUSE-SU-2024:1939-1","UBUNTU-CVE-2024-3651","USN-6780-1","openSUSE-SU-2024:13874-1","openSUSE-SU-2026:11711-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python IDNA library","requires_auth":"none","summary":"Attackers can cause denial of service in applications using the kjd/idna library by submitting crafted inputs that trigger quadratic complexity in the encoding function.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"internationalized_domain_names_in_applications","vendor":"kjd"}],"cvss":{"score":6.2,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.0"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","PyPI","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.6::baseos","Red Hat:rhel_els:7","Red Hat:rhel_eus:8.8::baseos","Red Hat:rhel_tus:8.6::baseos","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Public Cloud 15 SP4","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Module for Python 3 15 SP6","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Leap Micro 5.3","openSUSE:Leap Micro 5.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2026-09-25","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-09-25T18:39:49Z","kind":"github_poc","ref":"https://github.com/redhat-tssc-tmm/CVE-2024-3651-exploit","stars":0,"title":"Simple app to demonstrate CVE-2024-3651"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Denial of Service via Quadratic Complexity in kjd/idna","id":"CVE-2024-3651","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":40,"n_references":2,"next":{"headline":"IKEv1 default AH/ESP responder can cause libreswan to abort and restart","id":"CVE-2024-3652"},"packages":[{"ecosystem":"PyPI","fixed":["3.7"],"introduced":["0"],"last_affected":[],"package":"idna","purl":null,"source":"GHSA-jjg7-2v4v-x38h"},{"ecosystem":"PyPI","fixed":["3.7"],"introduced":["0"],"last_affected":[],"package":"idna","purl":"pkg:pypi/idna","source":"GHSA-jjg7-2v4v-x38h"},{"ecosystem":"PyPI","fixed":["3.7"],"introduced":["0.1"],"last_affected":[],"package":"idna","purl":"pkg:pypi/idna","source":"PYSEC-2024-60"},{"ecosystem":"AlmaLinux:8","fixed":["2.5-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-idna","purl":"pkg:rpm/almalinux/python3-idna","source":"ALSA-2024:4260"},{"ecosystem":"AlmaLinux:9","fixed":["2.10-7.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3-idna","purl":"pkg:rpm/almalinux/python3-idna","source":"ALSA-2024:3846"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.5-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/redhat/python-idna","source":"RHSA-2024:4260"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["0:2.5-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-idna","purl":"pkg:rpm/redhat/python3-idna","source":"RHSA-2024:4260"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.10-7.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/redhat/python-idna","source":"RHSA-2024:3846"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:2.10-7.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python3-idna","purl":"pkg:rpm/redhat/python3-idna","source":"RHSA-2024:3846"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:2.5-5.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/redhat/python-idna","source":"RHSA-2024:3552"},{"ecosystem":"Red Hat:rhel_aus:8.6::baseos","fixed":["0:2.5-5.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-idna","purl":"pkg:rpm/redhat/python3-idna","source":"RHSA-2024:3552"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:2.5-5.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/redhat/python-idna","source":"RHSA-2024:3552"},{"ecosystem":"Red Hat:rhel_e4s:8.6::baseos","fixed":["0:2.5-5.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-idna","purl":"pkg:rpm/redhat/python3-idna","source":"RHSA-2024:3552"},{"ecosystem":"Red Hat:rhel_els:7","fixed":["0:2.4-2.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/redhat/python-idna","source":"RHSA-2024:8365"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["0:2.5-5.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/redhat/python-idna","source":"RHSA-2024:3543"},{"ecosystem":"Red Hat:rhel_eus:8.8::baseos","fixed":["0:2.5-5.el8_8.1"],"introduced":["0"],"last_affected":[],"package":"python3-idna","purl":"pkg:rpm/redhat/python3-idna","source":"RHSA-2024:3543"},{"ecosystem":"Red Hat:rhel_tus:8.6::baseos","fixed":["0:2.5-5.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/redhat/python-idna","source":"RHSA-2024:3552"},{"ecosystem":"Red Hat:rhel_tus:8.6::baseos","fixed":["0:2.5-5.el8_6.1"],"introduced":["0"],"last_affected":[],"package":"python3-idna","purl":"pkg:rpm/redhat/python3-idna","source":"RHSA-2024:3552"},{"ecosystem":"Rocky Linux:8","fixed":["0:2.5-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/rocky-linux/python-idna?distro=rocky-linux-8-x86-64\u0026epoch=0","source":"RLSA-2024:4260"},{"ecosystem":"Rocky Linux:9","fixed":["0:2.10-7.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/rocky-linux/python-idna?distro=rocky-linux-9-x86-64\u0026epoch=0","source":"RLSA-2024:3846"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:1439-2"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP5","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 12","fixed":["2.5-3.13.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2012","source":"SUSE-SU-2024:1428-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Public Cloud 15 SP4","fixed":["3.4-150400.11.10.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4","source":"SUSE-SU-2024:1939-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP5","fixed":["3.4-150400.11.10.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP5","source":"SUSE-SU-2024:1939-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","fixed":["3.4-150400.11.10.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","source":"SUSE-SU-2024:1939-1"},{"ecosystem":"SUSE:Linux Enterprise Server 12 SP5","fixed":["2.5-3.13.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5","source":"SUSE-SU-2024:1428-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","fixed":["2.5-3.13.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/suse/python-idna\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5","source":"SUSE-SU-2024:1428-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/opensuse/python-idna\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["3.4-150400.11.10.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/opensuse/python-idna\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:1939-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.4-150400.11.10.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/opensuse/python-idna\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:1939-1"},{"ecosystem":"openSUSE:Leap Micro 5.3","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/opensuse/python-idna\u0026distro=openSUSE%20Leap%20Micro%205.3","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"openSUSE:Leap Micro 5.4","fixed":["2.6-150000.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/opensuse/python-idna\u0026distro=openSUSE%20Leap%20Micro%205.4","source":"SUSE-SU-2024:1439-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.19-1.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/opensuse/python-idna\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11711-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.7-1.1"],"introduced":["0"],"last_affected":[],"package":"python-idna","purl":"pkg:rpm/opensuse/python-idna\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:13874-1"}],"prev":{"headline":"Cross-site scripting in ElementsKit Elementor addons and Templates Library","id":"CVE-2024-3650"},"products":["kjd/idna"],"published":"2024-07-07","related":[{"cvss_score":6.9,"headline":"Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix","id":"CVE-2026-45409","kev_date_added":null,"published":"2026-06-05"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["kjd"]},"summary":"Attackers can cause denial of service in applications using the kjd/idna library by submitting crafted inputs that trigger quadratic complexity in the encoding function.","url":"https://insights.sbomify.com/CVE-2024-3651/"}