cve.bz

CVE-2025-64460 djangoproject django: Inefficient Algorithmic Complexity

7.5 highEPSS 2.2%Fix available

High (7.5) in djangoproject django. EPSS 2.2% estimated probability of exploitation activity in the next 30 days. Fixed in django 4.2.27, 5.1.15, 5.2.9.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.2% (unchanged from 2.2% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-12-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-64460 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-64460?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-64460?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-64460 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2025-64460

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2025-64460](https://cve.bz/cve/badge/CVE-2025-64460.svg)](https://cve.bz/cve/CVE-2025-64460)

HTML:

<a href="https://cve.bz/cve/CVE-2025-64460"><img src="https://cve.bz/cve/badge/CVE-2025-64460.svg" alt="CVE-2025-64460"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
djangoproject Djangofrom 5.2 before 5.2.9
djangoproject Djangofrom 5.1 before 5.1.15
djangoproject Djangofrom 4.2 before 4.2.27

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vrcr-9hj9-jcg6PyPIdjango>=5.2a1 <5.2.95.2.9
GHSA-vrcr-9hj9-jcg6PyPIdjango>=5.1a1 <5.1.155.1.15
GHSA-vrcr-9hj9-jcg6PyPIdjango>=4.2a1 <4.2.274.2.27
PYSEC-2025-109PyPIdjango>=4.2 <4.2.27
>=5.1 <5.1.15
>=5.2 <5.2.9
4.2.27, 5.1.15, 5.2.9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-django2:2.2.28-1~deb11u10DLA-4425-1
Debian12python-django3:3.2.25-0+deb12u1DEBIAN-CVE-2025-64460 DSA-6136-1
Debian13python-django3:4.2.27-0+deb13u1DEBIAN-CVE-2025-64460 DSA-6117-1
Debian14python-django3:4.2.27-1DEBIAN-CVE-2025-64460
Ubuntu22.04:LTSpython-django2:3.2.12-2ubuntu1.24UBUNTU-CVE-2025-64460 USN-7903-1
Ubuntu24.04:LTSpython-django3:4.2.11-1ubuntu1.13UBUNTU-CVE-2025-64460 USN-7903-1
Ubuntu25.10python-django3:5.2.4-1ubuntu2.2UBUNTU-CVE-2025-64460 USN-7903-1
Ubuntu26.04:LTSpython-django3:5.2.9-0ubuntu1UBUNTU-CVE-2025-64460
UbuntuPro:14.04:LTSpython-django1.6.11-0ubuntu1.3+esm9UBUNTU-CVE-2025-64460 USN-7903-1
UbuntuPro:16.04:LTSpython-django1.8.7-1ubuntu5.15+esm10UBUNTU-CVE-2025-64460 USN-7903-1
UbuntuPro:18.04:LTSpython-django1:1.11.11-1ubuntu1.21+esm13UBUNTU-CVE-2025-64460 USN-7903-1
UbuntuPro:20.04:LTSpython-django2:2.2.12-1ubuntu0.29+esm6UBUNTU-CVE-2025-64460 USN-7903-1
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.5.30-1.el8apRHSA-2026:1497
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8receptor0:1.6.3-1.el8apRHSA-2026:1497
Red Hatansible_automation_platform:2.4::el9automation-controller-venv-tower0:4.5.30-1.el9apRHSA-2026:1497
Red Hatansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9receptor0:1.6.3-1.el9apRHSA-2026:1497
Red Hatansible_automation_platform:2.5::el8automation-controller-venv-tower0:4.6.25-1.el8apRHSA-2026:1506
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8python3.11-django0:4.2.27-1.el8apRHSA-2026:1506
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8python3.11-urllib30:2.6.3-1.el8apRHSA-2026:1506
Red Hatansible_automation_platform:2.5::el8, ansible_automation_platform_developer:2.5::el8, ansible_automation_platform_inside:2.5::el8receptor0:1.6.3-1.el8apRHSA-2026:1506
Red Hatansible_automation_platform:2.5::el9automation-controller-venv-tower0:4.6.25-1.el9apRHSA-2026:1506
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9python3.11-django0:4.2.27-1.el9apRHSA-2026:1506
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9python3.11-urllib30:2.6.3-1.el9apRHSA-2026:1506
Red Hatansible_automation_platform:2.5::el9, ansible_automation_platform_developer:2.5::el9, ansible_automation_platform_inside:2.5::el9receptor0:1.6.3-1.el9apRHSA-2026:1506
6 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Package Hub 15 SP6, Linux Enterprise Module for Package Hub 15 SP7python-Django4.2.11-150600.3.44.1SUSE-SU-2025:4384-1
openSUSELeap 15.6python-Django4.2.11-150600.3.44.1SUSE-SU-2025:4384-1
openSUSELeap 16.0python-Django5.2.4-bp160.4.1openSUSE-SU-2025:20153-1
openSUSETumbleweedpython-Django5.2.9-1.1openSUSE-SU-2025:15805-1
openSUSETumbleweedpython-Django44.2.27-1.1openSUSE-SU-2025:15806-1
openSUSETumbleweedpython-Django55.2.16-1.1openSUSE-SU-2026:11270-1
openSUSETumbleweedpython-Django66.0-1.1openSUSE-SU-2026:10005-1
Alpinev3.22, v3.23, v3.24py3-django4.2.27-r0ALPINE-CVE-2025-64460

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated Important for Red Hat products that process XML input using Django's XML Deserializer, including Red Hat Ansible Automation Platform, Red Hat OpenStack Platform, and OpenShift Service Mesh. A remote attacker can exploit this flaw by providing specially crafted XML, leading to a denial-of-service due to CPU and memory exhaustion.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8automation-controller-0:4.5.30-1.el8apFixed 2026-01-28RHSA-2026:1497
Red Hat Ansible Automation Platform 2.4 for RHEL 9automation-controller-0:4.5.30-1.el9apFixed 2026-01-28RHSA-2026:1497
Red Hat Ansible Automation Platform 2.5 for RHEL 8automation-controller-0:4.6.25-1.el8apFixed 2026-01-28RHSA-2026:1506
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.11-django-0:4.2.27-1.el8apFixed 2026-01-28RHSA-2026:1506
Red Hat Ansible Automation Platform 2.5 for RHEL 9automation-controller-0:4.6.25-1.el9apFixed 2026-01-28RHSA-2026:1506
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.11-django-0:4.2.27-1.el9apFixed 2026-01-28RHSA-2026:1506
Red Hat Ansible Automation Platform 2.6 for RHEL 9automation-controller-0:4.7.8-1.el9apFixed 2026-01-26RHSA-2026:1249
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.11-django-0:4.2.27-2.el9apFixed 2026-01-26RHSA-2026:1249
Red Hat Ansible Automation Platform 2.4ansible-automation-platform-24/lightspeed-rhel8:1768268588Fixed 2026-01-29RHSA-2026:1599
Red Hat Ansible Automation Platform 2.5ansible-automation-platform-25/lightspeed-rhel8:1768874696Fixed 2026-01-30RHSA-2026:1609
OpenShift Service Mesh 2openshift-service-mesh/pilot-rhel8Not affected
OpenShift Service Mesh 3openshift-service-mesh/istio-cni-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/lightspeed-rhel9Not affected
Red Hat OpenStack Platform 13 (Queens)rhosp13/openstack-horizonNot affected
Red Hat OpenStack Platform 16.2rhosp-rhel8/openstack-horizonNot affected
4 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-64460.

References

Check your stackJSON