{"id":"CVE-2024-3651","published":"2024-07-07T17:22:10Z","modified":"2025-11-04T22:06:20Z","title":"Denial of Service via Quadratic Complexity in kjd/idna","vendor":"kjd","product":"kjd/idna","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0144,"percentile":0.73413,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://huntr.com/bounties/93d78d07-d791-4b39-a845-cbfabc44aadb","tags":[]},{"url":"https://github.com/kjd/idna/commit/1d365e17e10d72d0b7876316fc7b9ca0eebdd38d","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/05/msg00006.html","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F2S5E23N6E52S46KGNYTDFB75LOC4N4D/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S5IDLLD2IKSIVRBSLB34WTSYGLMWUFWF/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULSC7HBJKXB3BZV367WM5BR6DFEC4Z43/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4YQUPYH3SVZ5GFF2CDQ55FCM575AZTF2/","tags":[]}],"priority":{"score":24.0,"factors":[{"name":"EPSS percentile","points":14.68},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.34}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-09-25","earliestUrl":"https://github.com/redhat-tssc-tmm/CVE-2024-3651-exploit","repos":[{"name":"redhat-tssc-tmm/CVE-2024-3651-exploit","url":"https://github.com/redhat-tssc-tmm/CVE-2024-3651-exploit","stars":0,"created":"2026-09-25"}]},"first":{"date":"2026-09-25","source":"PoC-in-GitHub","url":"https://github.com/redhat-tssc-tmm/CVE-2024-3651-exploit"},"provenance":"source"},"vendorSlug":"kjd","affectedVersions":[{"vendor":"kjd","product":"kjd/idna","versions":[">= unspecified, < 3.7"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-07T19:07:43.737156Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"idna","vulnerableRanges":["<3.7",">=0.1, <3.7"],"patched":["3.7"],"from":["GHSA-jjg7-2v4v-x38h","PYSEC-2024-60"],"provenance":"source"}],"summary":{"text":"The kjd/idna library, specifically its idna.encode() function, mishandles crafted input strings in version 3.6, causing computation to scale quadratically with input size. An attacker with local access and no privileges or user interaction can supply a crafted string to trigger heavy processing, resulting in a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:32Z"},"euvd":{"id":"EUVD-2024-0077","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-kjd-idna-cve-2024-3651","children":[{"from":"CVE-2024-3651","to":"CVE-2026-45409","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix.","from":"CVE.org","in":"CVE-2026-45409"},{"kind":"version-step","provenance":"source","package":"PyPI:idna","fromFixed":"3.7","toFixed":"3.15","daysApart":698}]}],"packageHistory":[{"cve":"CVE-2024-3651","published":"2024-07-07","fixed":"3.7","kev":false},{"cve":"CVE-2026-45409","published":"2026-06-05","fixed":"3.15","kev":false}],"package":"PyPI:idna"}}