Skip to main content
VulnerabilityPublished

CVE-2025-64460: djangoproject Django · Inefficient Algorithmic Complexity

Affects djangoproject DjangoSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 26 Oct 2026, 11:42 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIdjangopkg:pypi/djangoOther threatsAffected
  • =5.2
  • =5.1
  • =4.2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Immediately upgrade Django to the fixed versions: 5.2.9 or later, 5.1.15 or later, and 4.2.27 or later.
  2. 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.
  3. 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.
  4. Employ input validation and XML schema validation to reject malformed or overly complex XML documents before processing.
  5. Monitor application performance and resource usage to detect abnormal spikes indicative of exploitation attempts.
  6. Use runtime application self-protection (RASP) tools to detect and mitigate resource exhaustion attacks dynamically.
  7. Conduct regular security assessments and code reviews focusing on deserialization components.
  8. 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.

References

Community reviews

Loading reviews…