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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | python3-idna | 3.7-6.el10_2 | ALSA-2026:54481 |
| AlmaLinux:8 | python3-idna | 2.5-8.el8_10 | ALSA-2026:54290 |
| AlmaLinux:9 | python3-idna | 2.10-8.el9_8 | ALSA-2026:54484 |
| Debian:12 | python-idna | no fix listed | DEBIAN-CVE-2026-45409 |
| Debian:13 | python-idna | 3.10-1+deb13u1 | DEBIAN-CVE-2026-45409 |
| Debian:14 | python-idna | 3.11-1.1 | DEBIAN-CVE-2026-45409 |
| PyPI | idna | 3.15 | PYSEC-2026-215 |
| PyPI | idna | 3.15 | GHSA-65pc-fj4g-8rjx |
| Rocky Linux:10 | python-idna | 0:3.7-6.el10_2 | RLSA-2026:54481 |
| Rocky Linux:8 | python-idna | 0:2.5-8.el8_10 | RLSA-2026:54290 |
| Rocky Linux:9 | python-idna | 0:2.10-8.el9_8 | RLSA-2026:54484 |
| Ubuntu:22.04:LTS | python-idna | 3.3-1ubuntu0.2 | UBUNTU-CVE-2026-45409 |
| Ubuntu:22.04:LTS | python-idna | 3.3-1ubuntu0.2 | USN-8549-1 |
| Ubuntu:24.04:LTS | python-idna | 3.6-2ubuntu0.2 | USN-8549-1 |
| Ubuntu:24.04:LTS | python-idna | 3.6-2ubuntu0.2 | UBUNTU-CVE-2026-45409 |
| Ubuntu:25.10 | python-idna | no fix listed | UBUNTU-CVE-2026-45409 |
| Ubuntu:26.04:LTS | python-idna | 3.11-1ubuntu0.1 | USN-8549-1 |
| Ubuntu:26.04:LTS | python-idna | 3.11-1ubuntu0.1 | UBUNTU-CVE-2026-45409 |
| Ubuntu:25.10 | python-pip | no fix listed | UBUNTU-CVE-2026-45409 |
| Ubuntu:26.10 | python-pip | no fix listed | UBUNTU-CVE-2026-45409 |
Affected products (as reported)
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
- https://github.com/kjd/idna/security/advisories/GHSA-65pc-fj4g-8rjx x_refsource_CONFIRM