Vulnerability · Published Jun 5, 2026 · Assigned by GitHub_M

CVE-2026-45409Internationalized Domain Names in Applications (IDNA): Specially crafted inputs to idna.encode() can bypass CVE-2024-3651 fix

Medium 6.9

In plain English

A medium-severity regular-expression denial of service in idna from kjd. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.4%top 64.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Internationalized Domain Names in Applications (IDNA) for Python provides support for Internationalized Domain Names in Applications (IDNA) and Unicode IDNA Compatibility Processing. In versions prior to 3.15, 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. This is the same issue as CVE-2024-3651, however the original remediation in 2024 was not a complete fix. A specially crafted argument to the `idna.encode()` function could consume significant resources. This may lead to a denial-of-service. 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). A workaround is available. 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10python3-idna3.7-6.el10_2ALSA-2026:54481
AlmaLinux:8python3-idna2.5-8.el8_10ALSA-2026:54290
AlmaLinux:9python3-idna2.10-8.el9_8ALSA-2026:54484
Debian:12python-idnano fix listedDEBIAN-CVE-2026-45409
Debian:13python-idna3.10-1+deb13u1DEBIAN-CVE-2026-45409
Debian:14python-idna3.11-1.1DEBIAN-CVE-2026-45409
PyPIidna3.15PYSEC-2026-215
PyPIidna3.15GHSA-65pc-fj4g-8rjx
Rocky Linux:10python-idna0:3.7-6.el10_2RLSA-2026:54481
Rocky Linux:8python-idna0:2.5-8.el8_10RLSA-2026:54290
Rocky Linux:9python-idna0:2.10-8.el9_8RLSA-2026:54484
Ubuntu:22.04:LTSpython-idna3.3-1ubuntu0.2UBUNTU-CVE-2026-45409
Ubuntu:22.04:LTSpython-idna3.3-1ubuntu0.2USN-8549-1
Ubuntu:24.04:LTSpython-idna3.6-2ubuntu0.2USN-8549-1
Ubuntu:24.04:LTSpython-idna3.6-2ubuntu0.2UBUNTU-CVE-2026-45409
Ubuntu:25.10python-idnano fix listedUBUNTU-CVE-2026-45409
Ubuntu:26.04:LTSpython-idna3.11-1ubuntu0.1USN-8549-1
Ubuntu:26.04:LTSpython-idna3.11-1ubuntu0.1UBUNTU-CVE-2026-45409
Ubuntu:25.10python-pipno fix listedUBUNTU-CVE-2026-45409
Ubuntu:26.10python-pipno fix listedUBUNTU-CVE-2026-45409

Affected products (as reported)

VendorProductVersions
kjd idna < 3.15

Weakness: CWE-1333 · Vector: 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

References