CVE-2024-3651
Denial of Service via Quadratic Complexity in kjd/idna
Reported by @huntr_ai · Published July 7, 2024
idna is fixed in 3.7 and 1d365e17e10d72d0b7876316fc7b9ca0eebdd38d (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| idna | PyPI | 3.7, 1d365e17e10d72d0b7876316fc7b9ca0eebdd38d |
| az | Chainguard | 2.60.0-r0 |
| kubeflow-katib | Wolfi | 0.18.0-r0 |
| jwt-tool | Chainguard | 2.2.7-r0 |
| ggshield | Chainguard | 1.27.0-r0 |
| python2-pip | Amazon Linux | 20.2.2-1.amzn2.0.7 |
| k8s-sidecar | Chainguard | 1.26.1-r1 |
| py3-idna | Chainguard | 3.7-r0 |
| py3-cassandra-medusa | Wolfi | 0.23.0-r30 |
| py3-torchvision-cuda-11.8 | Chainguard | 0.18.1-r3 |
| confluent-docker-utils | Chainguard | 0.0.76-r0 |
| kubeflow-pipelines-visualization-server | Chainguard | 2.2.0-r0 |
44 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| kjd | kjd/idna | unspecified |
| chainguard | az | 0 |
| kjd | idna | |
| wolfi | kubeflow-katib | 0 |
| chainguard | jwt-tool | 0 |
| chainguard | ggshield | 0 |
| amazon:2 | python2-pip | 0 |
| chainguard | k8s-sidecar | 0 |
| chainguard | py3-idna | 0 |
| wolfi | py3-cassandra-medusa | 0 |
| chainguard | py3-torchvision-cuda-11.8 | 0 |
| chainguard | confluent-docker-utils | 0 |
| chainguard | kubeflow-pipelines-visualization-server | 0 |
| amazon:2 | python-pip-wheel | 0 |
| chainguard | py3.11-pytorch-cuda-12.3 | 0 |
| wolfi | az | 0 |
| wolfi | datadog-agent | 0 |
| chainguard | kubeflow-pipelines | 0 |
| amazon:2023 | python3-pip | 0 |
| chainguard | py3.11-torchaudio-cuda-12.3 | 0 |
…and 39 more
Timeline
- Apr 11, 2024 CVE Published
- Jul 8, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (14 in total, the first dated here)
- Mar 9, 2026 Security Advisory (37 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (32 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-3651
vulnetix vdb fixes CVE-2024-3651
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-3651/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-3651 advisory
- https://github.com/advisories/GHSA-jjg7-2v4v-x38h advisory
- https://github.com/kjd/idna/security/advisories/GHSA-jjg7-2v4v-x38h url
- https://github.com/kjd/idna url
- https://github.com/pypa/advisory-database/tree/main/vulns/idna/PYSEC-2024-60.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4YQUPYH3SVZ5GFF2CDQ55FCM575AZTF2 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F2S5E23N6E52S46KGNYTDFB75LOC4N4D url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S5IDLLD2IKSIVRBSLB34WTSYGLMWUFWF url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULSC7HBJKXB3BZV367WM5BR6DFEC4Z43 url
- https://lists.debian.org/debian-lts-announce/2024/05/msg00006.html url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F2S5E23N6E52S46KGNYTDFB75LOC4N4D/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S5IDLLD2IKSIVRBSLB34WTSYGLMWUFWF/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULSC7HBJKXB3BZV367WM5BR6DFEC4Z43/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4YQUPYH3SVZ5GFF2CDQ55FCM575AZTF2/ url