Skip to main content
CVE-2024-3651VulnerabilityPublished Updated

CVE-2024-3651: kjd/idna · ReDoS

Affects kjd/idnaSource CVE Database V5

0

Not known to be exploited · CVSS 6.2 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.0 base score
6.2Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.3% chance of exploitation in 30 days – higher than 72% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
Gogithub.com/kjd/idnapkg:golang/github.com/kjd/idnaOther threatsAffected
  • =3.6
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Monitor for official patches or updates from the kjd project and apply them promptly once available. 2. Until a patch is released, implement input validation to detect and reject suspicious or unusually long domain name inputs that could trigger the quadratic complexity. 3. Employ rate limiting and throttling on services that invoke the idna.encode() function to reduce the risk of resource exhaustion from repeated crafted inputs. 4. Consider sandboxing or isolating components that use the vulnerable library to limit the impact of potential denial of service. 5. Conduct code audits and testing to identify other potential inefficient regular expression usage in the codebase. 6. Maintain logging and monitoring to detect abnormal CPU usage or performance degradation indicative of exploitation attempts. 7. Educate developers and security teams about the risks of inefficient regex handling and encourage secure coding practices.

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.

References

Community reviews

Loading reviews…