medium CVSS 5.3 EPSS <0.1%

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-idna

Defensia detects this vulnerability

How to check if you are affected

  1. Run `python3 -c "import idna; print(idna.__version__)"` to check the installed IDNA library version; versions prior to 3.15 are vulnerable.
  2. 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"`.
  3. Monitor application logs and system resources for sudden CPU spikes or hanging processes when processing domain name inputs, particularly with unusually long strings.
  4. 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

CVE-2026-28505CVSS 10Tautulli is a Python based monitoring and tracking tool for Plex Media Server. Prior to version 2.17.0, the str_eval() function in notification_handler.py implements a sandboxed eval() for notification text templates. The sandbox attempts to restrict callable names by inspecting code.co_names of the compiled code object. However, co_names only contains names from the outer code object. When a lambda expression is used, it creates a nested code object whose attribute accesses are stored in code.co_consts, NOT in code.co_names. The sandbox never inspects nested code objects. This issue has been patched in version 2.17.0.
CVE-2026-34938CVSS 10PraisonAI is a multi-agent teams system. Prior to version 1.5.90, execute_code() in praisonai-agents runs attacker-controlled Python inside a three-layer sandbox that can be fully bypassed by passing a str subclass with an overridden startswith() method to the _safe_getattr wrapper, achieving arbitrary OS command execution on the host. This issue has been patched in version 1.5.90.
CVE-2026-33054CVSS 10Mesop is a Python-based UI framework that allows users to build web applications. Versions 1.2.2 and below contain a Path Traversal vulnerability that allows any user supplying an untrusted state_token through the UI stream payload to arbitrarily target files on the disk under the standard file-based runtime backend. This can result in application denial of service (via crash loops when reading non-msgpack target files as configurations), or arbitrary file manipulation. This vulnerability heavily exposes systems hosted utilizing FileStateSessionBackend. Unauthorized malicious actors could interact with arbitrary payloads overwriting or explicitly removing underlying service resources natively outside the application bounds. This issue has been fixed in version 1.2.3.
CVE-2026-25632CVSS 10EPyT-Flow is a Python package designed for the easy generation of hydraulic and water quality scenario data of water distribution networks. Prior to 0.16.1, EPyT-Flow’s REST API parses attacker-controlled JSON request bodies using a custom deserializer (my_load_from_json) that supports a type field. When type is present, the deserializer dynamically imports an attacker-specified module/class and instantiates it with attacker-supplied arguments. This allows invoking dangerous classes such as subprocess.Popen, which can lead to OS command execution during JSON parsing. This also affects the loading of JSON files. This vulnerability is fixed in 0.16.1.
CVE-2026-8481CVSS 9.9IBM Langflow OSS 1.0.0 through 1.10.0 contain a critical remote code execution vulnerability in the code validation API endpoint. The POST /api/v1/validate/code endpoint accepts user-supplied Python code and executes it directly using Python's built-in exec() function without sandboxing, input validation, or privilege restrictions, enabling any authenticated user to execute arbitrary system commands with the full privileges of the Langflow server process.

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