CVE-2026-45409·Python vulnerability
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.
- Severity
- medium
- Software
- Python
- Fixed in
- 3.15
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 5% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
Until: 3.15
Fixed in: 3.15
How to fix this CVE
Update the Python IDNA library to version 3.15 or later to remediate this denial-of-service vulnerability. The vulnerability allows attackers to submit specially crafted domain names that trigger excessive processing in the idna.encode() function. Implement input validation to reject domain names exceeding 253 characters before passing them to IDNA processing functions as an immediate mitigation.
sudo dnf update python3-idnaDefensia detects this vulnerability
How to check if you are affected
- Run `python3 -c "import idna; print(idna.__version__)"` to check the installed IDNA library version; versions prior to 3.15 are vulnerable.
- Verify if IDNA is used directly in your applications by searching code for `idna.encode()`, `idna.decode()`, or IDNA codec references with `grep -r "idna" /path/to/app --include="*.py"`.
- Monitor application logs and system resources for sudden CPU spikes or hanging processes when processing domain name inputs, particularly with unusually long strings.
- After updating, confirm the fix with `python3 -c "import idna; print(idna.__version__)"` and verify the version is 3.15 or higher.
FAQ
What is CVE-2026-45409?
CVE-2026-45409 is a denial-of-service vulnerability in Python's IDNA library where certain Unicode patterns repeated many times cause excessive resource consumption during domain name validation, bypassing length checks and causing the application to hang.
Is CVE-2026-45409 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit code is currently available.
What versions of Python are affected by CVE-2026-45409?
All versions of the IDNA library prior to version 3.15 are affected; this includes the IDNA component bundled with Python distributions up to Python 3.x with unpatched IDNA.
How do I check if my server is vulnerable to CVE-2026-45409?
Execute `python3 -m pip show idna | grep Version` or `python3 -c "import idna; print(idna.__version__)"` and compare the version number against 3.15; any version below 3.15 is vulnerable.
Does Defensia detect CVE-2026-45409?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Python and the IDNA library are installed on a monitored server, CVE-2026-45409 will appear in your dashboard with remediation steps.
Related Python CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-45409. Free for 1 server.
Get started free