CVE-2025-64460: djangoproject Django · Inefficient Algorithmic Complexity
Affects djangoproject DjangoSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 2.0% chance of exploitation in 30 days – higher than 81% 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 2 Dec 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 26 Oct 2026.
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
- Immediately upgrade Django to the fixed versions: 5.2.9 or later, 5.1.15 or later, and 4.2.27 or later.
- If upgrading is not immediately feasible, implement network-level protections such as rate limiting and web application firewalls (WAFs) to detect and block suspicious XML payloads or excessive requests targeting XML deserialization endpoints.
- Review application code to minimize or avoid accepting untrusted XML input for deserialization, or replace XML deserialization with safer data formats like JSON where possible.
- Employ input validation and XML schema validation to reject malformed or overly complex XML documents before processing.
- Monitor application performance and resource usage to detect abnormal spikes indicative of exploitation attempts.
- Use runtime application self-protection (RASP) tools to detect and mitigate resource exhaustion attacks dynamically.
- Conduct regular security assessments and code reviews focusing on deserialization components.
- Stay informed on Django security advisories for any updates or additional patches related to this vulnerability.
Description
An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. Algorithmic complexity in `django.core.serializers.xml_serializer.getInnerText()` allows a remote attacker to cause a potential denial-of-service attack triggering CPU and memory exhaustion via specially crafted XML input processed by the XML `Deserializer`. 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.