CVE-2025-64458: djangoproject Django · Inefficient Algorithmic Complexity
Affects djangoproject DjangoSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 1.9% chance of exploitation in 30 days – higher than 79% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 5 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIdjangopkg:pypi/djangoOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2025-64458, organizations should promptly upgrade affected Django versions to the fixed releases: 5.1.14 or later, 4.2.26 or later, and 5.2.8 or later. If immediate patching is not feasible, consider the following specific mitigations: 1) Implement input validation and size limits on HTTP request parameters that are processed by redirect functions to reject or truncate excessively large Unicode inputs before normalization occurs. 2) Deploy Web Application Firewalls (WAFs) with custom rules to detect and block requests containing unusually large Unicode payloads targeting redirect endpoints. 3) Monitor server performance metrics and logs for signs of abnormal CPU usage or request patterns indicative of this DoS attack. 4) Where possible, avoid running Django applications on Windows servers until patched, or isolate such servers behind additional filtering layers. 5) Review application code to minimize reliance on redirect functions that perform Unicode normalization or replace them with safer alternatives if available. 6) Employ rate limiting on endpoints that use these redirect functions to reduce the impact of potential abuse. These targeted mitigations complement patching and help reduce the attack surface and impact of exploitation.
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.