CVE-2025-64458: Django Django Has A Denial-of-service Vulnerability Vulnerability
HIGHCVE-2025-64458 is a HIGH (CVSS 7.5) django has a denial-of-service vulnerability vulnerability (CWE-407: Inefficient Algorithmic Complexity) affecting Django libraries in the PyPI ecosystem. The issue involves django has a denial-of-service vulnerability in httpresponseredirect and httpresponsepermanentredirect on windows. Remediation is available by upgrading affected packages to version 5.2.8, 5.1.14, 4.2.26.
CVE-2025-64458 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-64458
To remediate this vulnerability, upgrade all affected Django dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install django>=5.2.8
pip install django>=5.1.14
pip install django>=4.2.26
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show django
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-64458, inspect your installed packages using pip:
pip show django
Analyze the terminal output to locate any version of Django in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.8), your application is affected.
Note: The pip show django command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-407: Inefficient Algorithmic Complexity, where an algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached. In Django, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-64458 Affected Django Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
django
|
PyPI |
≥ 5.2a1
< 5.2.8
|
5.2.8
|
|
django
|
PyPI |
≥ 5.0a1
< 5.1.14
|
5.1.14
|
|
django
|
PyPI |
< 4.2.26
|
4.2.26
|
References
Frequently Asked Questions
What is CVE-2025-64458?
Which Django versions are affected?
What version fixes CVE-2025-64458?
Is django affected?
What is the CVSS score of CVE-2025-64458?
What CWE is associated with CVE-2025-64458?
How can I check PyPI dependencies for CVE-2025-64458?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qw25-v68c-qjf3",
"modified" : "2026-06-05T14:33:43Z",
"published" : "2025-11-05T15:31:07Z",
"aliases" : [ "CVE-2025-64458" ],
"summary" : "Django has a denial-of-service vulnerability in HttpResponseRedirect and HttpResponsePermanentRedirect on Windows",
"details" : "An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8.\nNFKC 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.\nEarlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.\nDjango would like to thank Seokchan Yoon for reporting this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.2a1"
}, {
"fixed" : "5.2.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0a1"
}, {
"fixed" : "5.1.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "django"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.2.26"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64458"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/3790593781d26168e7306b5b2f8ea0309de16242"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/4f5d904b63751dea9ffc3b0e046404a7fa5881ac"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/6e13348436fccf8f22982921d6a3a3e65c956a9f"
}, {
"type" : "WEB",
"url" : "https://github.com/django/django/commit/770eea38d7a0e9ba9455140b5a9a9e33618226a7"
}, {
"type" : "WEB",
"url" : "https://docs.djangoproject.com/en/dev/releases/security"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/django/django"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-107.yaml"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/g/django-announce"
}, {
"type" : "WEB",
"url" : "https://www.djangoproject.com/weblog/2025/nov/05/security-releases"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-407" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-05T19:55:37Z",
"nvd_published_at" : "2025-11-05T15:15:40Z"
}
}