Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisoryinternet-facing-service-vulnerability

Django Patches High-Severity SQL Injection and DoS Vulnerabilities

Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen Nov 8, 2025

Django Patches High-Severity SQL Injection and DoS Vulnerabilities

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.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Aug 6, 2024 – Nov 7, 2025
  1. Nov 7, 20251y ago

    Analysis highlights CVE-2025-57833 and broader Django ORM trust issues

    A follow-up security analysis described CVE-2025-57833, an alias-construction flaw involving FilteredRelation with QuerySet.annotate() or QuerySet.alias() that could enable SQL-injection-style manipulation when alias names come from untrusted input. The article also connected this issue with prior Django ORM and DoS bugs, urging code audits and a 'trust but verify' approach to framework defaults.

  2. Nov 6, 20251y ago

    Django releases security update for CVE-2025-64458 and CVE-2025-64459

    The Django team issued a security update addressing CVE-2025-64459, a high-severity SQL injection vulnerability, and CVE-2025-64458, a denial-of-service bug. The update was reported as the latest Django security release and advised users to upgrade to patched versions.

  3. Aug 6, 20242y ago

    Django discloses and patches CVE-2024-42005 SQL injection flaw

    Django released fixes for CVE-2024-42005, a SQL injection issue affecting QuerySet.values() and QuerySet.values_list() on models with JSONField when crafted JSON object keys were passed as positional arguments. The flaw showed that alias construction in the ORM could be abused under specific developer usage patterns.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

1 linked
Django

Organizations

1 linked
Django
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.