Vulnerability · Published Nov 5, 2025 · Assigned by DSF
CVE-2025-64458Potential denial-of-service vulnerability in HttpResponseRedirect and HttpResponsePermanentRedirect on Windows
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 1.9% (higher than 80% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | py3-django | 4.2.26-r0 | ALPINE-CVE-2025-64458 |
| Alpine:v3.23 | py3-django | 4.2.26-r0 | ALPINE-CVE-2025-64458 |
| Alpine:v3.24 | py3-django | 4.2.26-r0 | ALPINE-CVE-2025-64458 |
| Debian:12 | python-django | no fix listed | DEBIAN-CVE-2025-64458 |
| Debian:13 | python-django | no fix listed | DEBIAN-CVE-2025-64458 |
| Debian:14 | python-django | no fix listed | DEBIAN-CVE-2025-64458 |
| PyPI | django | 4.2.26, 5.1.14, 5.2.8 | PYSEC-2025-107 |
| PyPI | django | 4.2.26 | GHSA-qw25-v68c-qjf3 |
| PyPI | django | 5.1.14 | GHSA-qw25-v68c-qjf3 |
| PyPI | django | 5.2.8 | GHSA-qw25-v68c-qjf3 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | Django | 5.2 – before 5.2.85.1 – before 5.1.144.2 – before 4.2.26 |
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.8, 5.1.14, and 4.2.26 vendor-advisory