The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-3651

CVE-2024-3651: Kjd IDNA Library DoS Vulnerability

CVE-2024-3651 is a denial of service vulnerability in Kjd Internationalized Domain Names library caused by quadratic complexity in idna.encode(). This article covers the technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-3651 Overview

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.

Critical Impact

This algorithmic complexity vulnerability enables remote attackers to cause denial of service by sending specially crafted domain name inputs that trigger excessive CPU consumption during IDNA encoding operations.

Affected Products

  • kjd internationalized_domain_names_in_applications version 3.6

Discovery Timeline

  • 2024-07-07 - CVE-2024-3651 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2024-3651

Vulnerability Analysis

The vulnerability exists in the idna.encode() function of the kjd/idna Python library, which is widely used for processing Internationalized Domain Names in Applications (IDNA). When the function receives specially crafted input strings, it exhibits quadratic time complexity (O(n²)) behavior, where processing time increases disproportionately with input size.

The idna library is a critical dependency in the Python ecosystem, used by popular packages including requests, urllib3, and other HTTP client libraries. This means applications that accept user-controlled domain names or URLs as input could be vulnerable to denial of service attacks if they process untrusted data through the vulnerable idna.encode() function.

The vulnerability is classified under CWE-1333 (Inefficient Regular Expression Complexity), indicating the root cause involves algorithmic inefficiency in string processing operations.

Root Cause

The root cause of this vulnerability is inefficient algorithmic implementation within the idna.encode() function. When processing certain input patterns, the function's internal operations scale quadratically rather than linearly with input size. This algorithmic complexity issue allows an attacker to craft inputs that consume disproportionate CPU resources, leading to service degradation or complete denial of service.

Attack Vector

The attack can be executed remotely over a network without requiring authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Sending HTTP requests with maliciously crafted domain names in URLs
  2. Providing crafted internationalized domain names to any application component that processes them through the idna library
  3. Targeting web applications, APIs, or services that accept user-supplied domain names or URLs

The following patch from version 3.7 addresses this vulnerability:

text
 History
 -------
 
+3.7 (2024-04-11)
+++++++++++++++++
+
+- Fix issue where specially crafted inputs to encode() could
+  take exceptionally long amount of time to process. [CVE-2024-3651]
+
+Thanks to Guido Vranken for reporting the issue.
+
 3.6 (2023-11-25)
 ++++++++++++++++

Source: GitHub Commit

Detection Methods for CVE-2024-3651

Indicators of Compromise

  • Abnormally high CPU utilization on systems processing domain name inputs
  • Increased response times or timeouts in services handling URL or domain name processing
  • Presence of idna library version 3.6 or earlier in application dependencies
  • Log entries showing slow request processing for endpoints accepting domain names or URLs

Detection Strategies

  • Audit Python application dependencies using pip list or pip freeze to identify vulnerable idna versions (< 3.7)
  • Implement application performance monitoring to detect unusual CPU spikes during domain name processing
  • Use software composition analysis (SCA) tools to scan for CVE-2024-3651 in your dependency tree
  • Monitor for requests containing unusually long or repetitive domain name patterns

Monitoring Recommendations

  • Configure alerts for CPU utilization thresholds on services that process user-supplied URLs or domain names
  • Implement request timeout monitoring to detect potential exploitation attempts
  • Deploy real-time dependency scanning in CI/CD pipelines to prevent deployment of vulnerable versions
  • Enable logging for domain name encoding operations to identify anomalous input patterns

How to Mitigate CVE-2024-3651

Immediate Actions Required

  • Upgrade the idna library to version 3.7 or later immediately using pip install --upgrade idna
  • Audit all Python applications and their dependencies to identify instances of vulnerable idna versions
  • Implement input validation to limit the length and complexity of domain name inputs before processing
  • Consider implementing request rate limiting on endpoints that accept domain name or URL inputs

Patch Information

The vulnerability has been fixed in idna version 3.7, released on 2024-04-11. The fix addresses the algorithmic complexity issue in the idna.encode() function. Security researcher Guido Vranken was credited with reporting this vulnerability.

The version update is reflected in the following patch:

python
-__version__ = '3.6'
+__version__ = '3.7'

Source: GitHub Commit

For additional details, refer to the Huntr Bug Bounty Report. Distribution-specific patches are available through Debian LTS and Fedora package repositories.

Workarounds

  • Implement strict input length limits on domain names before passing them to idna.encode()
  • Add request timeout configurations to prevent long-running encoding operations from consuming resources
  • Deploy a web application firewall (WAF) rule to filter requests with excessively long domain name parameters
  • Consider sandboxing or resource-limiting processes that handle untrusted domain name inputs
bash
# Upgrade idna library to patched version
pip install --upgrade idna>=3.7

# Verify installed version
pip show idna | grep Version

# Check for vulnerable dependencies in your project
pip-audit --fix

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechKjd Internationalized Domain Names In Applications

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.67%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1333

  • NVD-CWE-noinfo
  • Technical References
  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • GitHub Commit Update

  • Huntr Bug Bounty Report
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English