CVE-2024-3651
HIGH 7.5CVSS 3.1Internationalized Domain Names in Applications (IDNA) vulnerable to denial of service from specially crafted inputs to idna.encode
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.
- Published
- 7 Jul 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-jjg7-2v4v-x38hPYSEC-2024-60
- Sources
- NVDJSONOSV GHSA-jjg7-2v4v-x38hJSONOSV PYSEC-2024-60JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.2 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 6.2 | CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kjd | internationalized_domain_names_in_applicationscpe:2.3:a:kjd:internationalized_domain_names_in_applications:*:*:*:*:*:*:*:* |
>= 0.2, < 3.7 | 3.7 |
| OSV | PyPI | idna | < 3.7 | 3.7 |
| OSV | PyPI | idna | >= 0.1, < 3.7 | 3.7 |
References
- https://github.com/kjd/idna/commit/1d365e17e10d72d0b7876316fc7b9ca0eebdd38d · Patch, WEB, FIX
- https://huntr.com/bounties/93d78d07-d791-4b39-a845-cbfabc44aadb · Exploit, Patch, WEB, EVIDENCE, FIX
- https://lists.debian.org/debian-lts-announce/2024/05/msg00006.html · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4YQUPYH3SVZ5GFF2CDQ55FCM575AZTF2/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F2S5E23N6E52S46KGNYTDFB75LOC4N4D/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S5IDLLD2IKSIVRBSLB34WTSYGLMWUFWF/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULSC7HBJKXB3BZV367WM5BR6DFEC4Z43/ · WEB
- https://github.com/kjd/idna/security/advisories/GHSA-jjg7-2v4v-x38h · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-3651 · ADVISORY
- https://github.com/kjd/idna · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/idna/PYSEC-2024-60.yaml · WEB
- https://github.com/advisories/GHSA-jjg7-2v4v-x38h · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 7 Jul 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Apr 2024)