Django Patches High-Severity SQL Injection and DoS Vulnerabilities
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Nov 8, 2025

The Django development team released a security update addressing two critical vulnerabilities: a high-severity SQL injection flaw (CVE-2025-64459) and a denial-of-service (DoS) bug (CVE-2025-64458). The SQL injection vulnerability, present in Django's Object-Relational Mapper (ORM), could allow attackers to manipulate database queries and compromise data integrity if exploited. The DoS vulnerability could enable attackers to disrupt application availability by sending specially crafted requests.
Security researchers highlighted that these flaws expose underlying risks in Django's ORM, which is widely trusted for its built-in security features. The incident underscores the importance of regular security reviews and prompt patching, even for mature frameworks. Organizations using Django are strongly advised to apply the latest security updates to mitigate these threats and reassess their reliance on default ORM protections.
Why it matters
Summary
Django deployments that use affected ORM patterns or exposed request-processing paths are at risk of data integrity compromise and application availability disruption. The impact is highest for internet-facing web applications in any industry that rely on Django 4.2, 5.1, or 5.2 branches and accept user-controlled input that influences ORM aliases, field selection, or large malformed payload handling.
Supporting details
Affected populations
- Organizations running Django-based applications, especially internet-facing services.
- Development teams using advanced ORM features such as FilteredRelation, QuerySet.annotate(), QuerySet.alias(), QuerySet.values(), and QuerySet.values_list().
- Applications using models with JSONField and dynamic field or alias selection derived from external input.
Severity and business impact
- SQL injection exposure can enable unauthorized data access, data modification, authentication-flow compromise, and potential deeper database compromise.
- Denial-of-service conditions can degrade or interrupt application availability through crafted requests or oversized malformed inputs.
- Business consequences include data loss or corruption, operational disruption, incident response costs, and reputational damage.
Scope and exploitation
- Exposure is potentially widespread because Django is broadly deployed and ORM safety is often assumed by developers.
- Practical exploitability depends on application code patterns that pass untrusted input into alias names, field names, or vulnerable request-processing functions.
- The provided references do not report confirmed exploitation in the wild.


