Vulnerability · Published Dec 2, 2025 · Assigned by DSF
CVE-2025-64460Potential denial-of-service vulnerability in XML serializer text extraction
High 7.5
In plain English
A high-severity security flaw in Django from djangoproject. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.2% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | py3-django | 4.2.27-r0 | ALPINE-CVE-2025-64460 |
| Alpine:v3.23 | py3-django | 4.2.27-r0 | ALPINE-CVE-2025-64460 |
| Alpine:v3.24 | py3-django | 4.2.27-r0 | ALPINE-CVE-2025-64460 |
| Debian:12 | python-django | 3:3.2.25-0+deb12u1 | DSA-6136-1 |
| Debian:12 | python-django | 3:3.2.25-0+deb12u1 | DEBIAN-CVE-2025-64460 |
| Debian:13 | python-django | 3:4.2.27-0+deb13u1 | DEBIAN-CVE-2025-64460 |
| Debian:13 | python-django | 3:4.2.27-0+deb13u1 | DSA-6117-1 |
| Debian:14 | python-django | 3:4.2.27-1 | DEBIAN-CVE-2025-64460 |
| PyPI | django | 4.2.27 | GHSA-vrcr-9hj9-jcg6 |
| PyPI | django | 4.2.27, 5.1.15, 5.2.9 | PYSEC-2025-109 |
| PyPI | django | 5.2.9 | GHSA-vrcr-9hj9-jcg6 |
| PyPI | django | 5.1.15 | GHSA-vrcr-9hj9-jcg6 |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.24 | USN-7903-1 |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.24 | UBUNTU-CVE-2025-64460 |
| Ubuntu:24.04:LTS | python-django | 3:4.2.11-1ubuntu1.13 | USN-7903-1 |
| Ubuntu:24.04:LTS | python-django | 3:4.2.11-1ubuntu1.13 | UBUNTU-CVE-2025-64460 |
| Ubuntu:25.10 | python-django | 3:5.2.4-1ubuntu2.2 | UBUNTU-CVE-2025-64460 |
| Ubuntu:25.10 | python-django | 3:5.2.4-1ubuntu2.2 | USN-7903-1 |
| Ubuntu:26.04:LTS | python-django | 3:5.2.9-0ubuntu1 | UBUNTU-CVE-2025-64460 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | Django | 5.2 – before 5.2.95.1 – before 5.1.154.2 – before 4.2.27 |
Weakness: CWE-407 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- Django security archive vendor-advisory
- Django releases announcements mailing-list
- Django security releases issued: 5.2.9, 5.1.15, and 4.2.27 vendor-advisory