Skip to main content

Python idna CVE-2026-45409

MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-05-19 https://github.com/kjd/idna GHSA-65pc-fj4g-8rjx
6.9
CVSS 4.0 · Vendor: https://github.com/kjd/idna
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit oversized CONTEXTO-class Unicode string as domain input
  2. Delivery
    Bypass application-level length validation (if absent)
  3. Exploit
    idna.encode() invokes valid_contexto before length rejection
  4. Execution
    valid_contexto iterates over N characters performing contextual checks
  5. Persist
    CPU consumed proportionally to input length
  6. Impact
    Application thread or worker starved, causing denial-of-service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application passes user-controlled input to idna.encode() (primary path, partially fixed in 3.14) or to per-label conversion functions and codec APIs (fully fixed in 3.15 only) without enforcing a maximum input length of 253 characters or fewer before the library call. The vulnerable processing is triggered specifically by Unicode codepoints carrying CONTEXTO joining properties - confirmed examples from the advisory are U+0660 (Arabic-Indic digit zero) used in repetition, and U+30FB (Katakana middle dot) combined with U+6F22 (a CJK character). Normal, protocol-compliant domain name inputs fall well within the 253-character DNS limit and will not trigger the issue. Applications that validate input length to RFC-compliant bounds upstream of the idna library are not exploitable. Authentication requirements are not determinable from available data as no CVSS vector was provided.

Impact

No CVSS score or vector is provided for CVE-2026-45409, which prevents automated severity scoring; risk ratings here are inferred from description semantics and must be independently verified. Conceptually, the attack is network-exploitable with no required authentication wherever a web application surfaces an idna.encode() call to user input - analogous to AV:N/AC:L/PR:N/UI:N - but the impact is limited strictly to availability, with no code execution or data access possible. EPSS score is unavailable. The vulnerability is not listed in CISA KEV, and no public exploit repository has been identified; the advisory itself includes example payloads (e.g., '٠' * N) that serve as a functional PoC demonstration rather than weaponized tooling. The practical risk is moderate: exploitation is gated on the target application accepting arbitrarily long user-supplied strings without length validation before passing them to the library, a condition that well-written applications following DNS protocol limits (253 characters) should not exhibit. This CVE represents a patch bypass of CVE-2024-3651, meaning environments that upgraded to idna 3.x believing themselves remediated may remain exposed if running versions below 3.15.

Exploit ScenarioDerived

An attacker submits a registration form or API request with a crafted 'domain name' field containing several thousand repetitions of U+0660 (Arabic-Indic digit zero) to a Python web application that normalizes domain input via idna.encode() without a length pre-check. The valid_contexto function iterates over the entire malformed input string performing contextual CONTEXTO validation before the length rejection fires, consuming CPU proportional to input size and potentially stalling the application thread or worker process. The PoC payloads are documented verbatim in the GitHub advisory, requiring no reverse engineering or special tooling to replicate.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 19, 2026

Resource exhaustion in the Python idna library's idna.encode() function allows denial-of-service via specially crafted Unicode inputs that bypass the incomplete CVE-2024-3651 remediation. Affected versions process CONTEXTO-class codepoints - such as Arabic-Indic digit zero (U+0660) or Katakana middle dot (U+30FB) - through the valid_contexto validation function before length rejection occurs, enabling arbitrarily large inputs to consume significant CPU. Any Python application that passes unvalidated user input to idna.encode() or related per-label/codec functions without upstream length enforcement is exposed; no public exploit has been identified at time of analysis beyond the PoC payloads embedded in the advisory itself.

RemediationAI

Upgrade idna to version 3.15 or later via pip install --upgrade idna, which is the vendor-released complete fix per GitHub Advisory GHSA-65pc-fj4g-8rjx. Version 3.14 is a partial fix covering the primary idna.encode() function but does not address per-label conversions or codec paths; version 3.15 is required for full remediation. As a compensating control, enforce the DNS maximum domain label and name length (253 characters total) at the application layer before any call to idna.encode() or related functions - this prevents arbitrarily long inputs from reaching the vulnerable processing path. This input validation should be treated as a defense-in-depth measure even after patching, since it enforces a valid protocol constraint regardless of library behavior. Applications using codec or per-label APIs should be audited specifically, as these paths were only hardened in 3.15. Full advisory: https://github.com/kjd/idna/security/advisories/GHSA-65pc-fj4g-8rjx.

Affected Packages

pypi idna fix: 3.15

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The idna Python package (pkg:pip/idna) implements RFC 5891 Internationalized Domain Names in Applications encoding, converting Unicode domain labels to their ASCII-compatible encoding (ACE) form. The root cause is CWE-1333 (Inefficient Regular Expression Complexity / Algorithmic Complexity): certain Unicode codepoints carry a CONTEXTO joining property under RFC 5892, meaning their validity depends on surrounding characters and requires iterative context inspection via the valid_contexto function. The original CVE-2024-3651 fix introduced a length check in idna.encode(), but positioned it after the valid_contexto call for CONTEXTO codepoints. An input of N repetitions of U+0660 (Arabic-Indic digit zero) or a combination of U+30FB (Katakana middle dot) and U+6F22 (CJK unified ideograph) triggers O(N)-or-worse processing in valid_contexto before the length guard fires, creating a CPU exhaustion vector. Version 3.14 moved the length rejection earlier in the primary encode path; version 3.15 extended this hardening to per-label conversion functions and codec support.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/kjd/idna) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (https://github.com/kjd/idna).

CVSS VectorVendor: https://github.com/kjd/idna

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 05, 2026 - 23:22 NVD
6.9 (MEDIUM)

DescriptionCVE.org

This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. Payloads such as "\u0660" * N or "\u30fb" * N + "\u6f22" utilize the valid_contexto function prior to length rejection, and for high values of N will take a long time to process.

Impact

A specially crafted argument to the idna.encode() function could consume significant resources. This may lead to a denial-of-service.

Patches

Starting in version 3.14, the function rejects long inputs as soon as practicable prior to any further processing to minimize resource consumption. In version 3.15, this approach was extended to lesser used alternate functions (i.e. per-label conversions and codec support).

Workarounds

Domain names cannot exceed 253 characters in length, if this length limit is enforced prior to passing the domain to the idna.encode() function it should no longer consume significant resources. This is triggered by arbitrarily large inputs that would not occur in normal usage, but may be passed to the library assuming there is no preliminary input validation by the higher-level application.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:pip/idna

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 12 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Micro 5.3 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy