CVE-2024-3651

published 7 Jul 2024 · updated 4 Nov 2025

Denial of Service via Quadratic Complexity in kjd/idna

6.2MediumCVSS 6.2EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.7.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
kjd<3.73.7

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-3651 severity on Zeptric[![CVE-2024-3651](https://zeptric.io/badge/cve/CVE-2024-3651.svg)](https://zeptric.io/cve/CVE-2024-3651)