Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-64458: CWE-407: Inefficient Algorithmic Complexity in djangoproject Django

0
High
VulnerabilityCVE-2025-64458cvecve-2025-64458cwe-407
Published: Wed Nov 05 2025 (11/05/2025, 15:07:17 UTC)
Source: CVE Database V5
Vendor/Project: djangoproject
Product: Django

Description

An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. NFKC normalization in Python is slow on Windows. As a consequence, `django.http.HttpResponseRedirect`, `django.http.HttpResponsePermanentRedirect`, and the shortcut `django.shortcuts.redirect` were subject to a potential denial-of-service attack via certain inputs with a very large number of Unicode characters. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.

AI-Powered Analysis

AILast updated: 11/12/2025, 15:27:12 UTC

Technical Analysis

CVE-2025-64458 is a vulnerability classified under CWE-407 (Inefficient Algorithmic Complexity) affecting the Django web framework versions 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. The root cause is the slow performance of NFKC (Normalization Form KC) Unicode normalization on Windows operating systems. Specifically, Django’s HTTP redirect functions—`HttpResponseRedirect`, `HttpResponsePermanentRedirect`, and the shortcut `redirect`—perform NFKC normalization on input strings. When these inputs contain a very large number of Unicode characters, the normalization process becomes computationally expensive, leading to excessive CPU consumption. This inefficiency can be exploited by an attacker to craft malicious HTTP requests with specially constructed Unicode payloads that trigger prolonged processing times, effectively causing a denial-of-service (DoS) condition by exhausting server resources. The vulnerability does not require authentication or user interaction, and it can be triggered remotely over the network. While unsupported Django versions such as 5.0.x, 4.1.x, and 3.2.x were not evaluated, they may also be vulnerable. No public exploits have been reported yet, but the issue is recognized and patched in the latest Django releases. The CVSS v3.1 base score is 7.5, indicating a high severity primarily due to the impact on availability (A:H), with no confidentiality or integrity impact. This vulnerability highlights the risks of algorithmic complexity attacks in web frameworks, especially when handling complex Unicode inputs on Windows platforms.

Potential Impact

For European organizations, this vulnerability poses a significant risk to the availability of web applications built on affected Django versions running on Windows servers. Attackers can remotely trigger denial-of-service conditions by sending crafted HTTP redirect requests containing large Unicode payloads, leading to server resource exhaustion and potential downtime. This can disrupt business operations, degrade user experience, and impact services reliant on Django-based web infrastructure. Organizations in sectors with high web service dependency—such as finance, e-commerce, government, and healthcare—may face operational interruptions and reputational damage. Additionally, the ease of exploitation without authentication increases the threat surface, enabling attackers to launch DoS attacks at scale. Although no known exploits are currently active, the vulnerability’s presence in widely used Django versions necessitates urgent remediation to prevent future attacks. The impact is particularly critical for organizations hosting public-facing web applications on Windows platforms, where the inefficient NFKC normalization is most pronounced.

Mitigation Recommendations

1. Upgrade Django to the latest patched versions: 5.1.14 or later, 4.2.26 or later, and 5.2.8 or later, as these releases contain fixes addressing the inefficient NFKC normalization issue. 2. If immediate upgrade is not feasible, implement input validation to restrict or sanitize Unicode characters in HTTP redirect inputs, limiting the length and complexity of redirect URLs to reduce processing overhead. 3. Deploy rate limiting and request throttling on endpoints that handle redirects to mitigate the risk of automated DoS attempts exploiting this vulnerability. 4. Monitor web server logs and application metrics for abnormal spikes in CPU usage or unusually large redirect requests containing extensive Unicode characters. 5. Consider isolating or migrating Django applications from Windows servers to Linux-based environments where the NFKC normalization performance issue is less severe. 6. Engage in proactive threat hunting to detect potential exploitation attempts targeting this vulnerability. 7. Educate development and security teams about algorithmic complexity attacks and encourage secure coding practices to avoid similar issues in the future.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
DSF
Date Reserved
2025-11-04T14:35:57.526Z
Cvss Version
null
State
PUBLISHED

Threat ID: 690b6b8d39a16b4c6e53b829

Added to database: 11/5/2025, 3:21:49 PM

Last enriched: 11/12/2025, 3:27:12 PM

Last updated: 12/19/2025, 12:47:16 AM

Views: 229

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats