SQL Injection Vulnerability in Django's FilteredRelation Affects Multiple Versions
CVE-2025-13372

4.3MEDIUM

Key Information:

Status
Vendor
CVE Published:
2 December 2025

Key facts: CVE-2025-13372 is a medium severity (CVSS 4.3) vulnerability in Djangoproject Django. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 0.5%, the estimated probability of exploitation in the next 30 days. Fixed in Django 5.2.9, 5.1.15, 4.2.27.

What is CVE-2025-13372?

CVE-2025-13372 is a vulnerability found in Django, a widely-used web framework for building scalable and secure web applications. Specifically, this issue affects several versions of Django, particularly before 5.2.9, 5.1.15, and 4.2.27. The vulnerability is characterized by an SQL injection flaw in the FilteredRelation component, which can be exploited through crafted input that leverages dictionary expansion linked to the **kwargs parameter in the QuerySet.annotate() or QuerySet.alias() methods when interfacing with PostgreSQL databases. If successfully exploited, this vulnerability could allow attackers to execute arbitrary SQL commands, potentially leading to unauthorized data access and manipulation. Organizations relying on vulnerable versions of Django could face severe consequences, including data integrity issues and compliance breaches.

Potential impact of CVE-2025-13372

  1. Unauthorized Data Access: The SQL injection vulnerability can lead to unauthorized access to sensitive data stored in databases, putting customer information, financial records, and personal data at risk.

  2. Data Manipulation Risks: Attackers exploiting this vulnerability can modify, delete, or corrupt database entries, causing significant disruptions to business operations and potentially resulting in data loss.

  3. Compliance Violations: Organizations that fail to address this vulnerability may violate data protection regulations, such as GDPR or HIPAA, leading to legal repercussions, fines, and damage to reputation.

Affected Version(s)

Django 5.2 < 5.2.9

Django 5.1 < 5.1.15

Django 4.2 < 4.2.27

References

  • CVE-2026-15307: Vulnerability in Django's GeoDjango Spatial Lookups Affecting Multiple Versions(HIGH)
  • CVE-2026-33033: Performance Degradation Issue in Django Framework(MEDIUM)
  • CVE-2025-64459: SQL Injection Vulnerability in Django Software by Django(CRITICAL)
  • CVE-2025-64458: Denial-of-Service Vulnerability in Django Framework Affecting Multiple Versions(HIGH)
  • CVE-2025-57833: SQL Injection Vulnerability in Django Framework by Django Software Foundation(HIGH)
  • CVE-2025-48432: Log Manipulation Vulnerability in Django Products by Django Software Foundation(MEDIUM)
  • CVE-2024-45230: Denial of Service Vulnerability in Django Framework from Django Software Foundation(HIGH)
Browse all analysed vulnerabilities ›

CVSS V3.1

Score:
4.3
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Stackered
Jacob Walls
Natalia Bidart
.