CVE-2025-57833
September 03, 2025
An issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed QuerySet.annotate() or QuerySet.alias().
Affected Packages
django (CONDA):
Affected version(s) >=5.2 <5.2.6Fix Suggestion:
Update to version 5.2.6django (CONDA):
Affected version(s) >=4.2 <4.2.24Fix Suggestion:
Update to version 4.2.24django (CONDA):
Affected version(s) >=5.1 <5.1.12Fix Suggestion:
Update to version 5.1.12https://github.com/django/django.git (GITHUB):
Affected version(s) >=5.1 <5.1.12Fix Suggestion:
Update to version 5.1.12https://github.com/django/django.git (GITHUB):
Affected version(s) >=5.2 <5.2.6Fix Suggestion:
Update to version 5.2.6https://github.com/django/django.git (GITHUB):
Affected version(s) >=4.2 <4.2.24Fix Suggestion:
Update to version 4.2.24Django (PYTHON):
Affected version(s) >=5.1 <5.1.12Fix Suggestion:
Update to version 5.1.12Django (PYTHON):
Affected version(s) >=4.2 <4.2.24Fix Suggestion:
Update to version 4.2.24django (PYTHON):
Affected version(s) >=5.1 <5.1.12Fix Suggestion:
Update to version 5.1.12django (PYTHON):
Affected version(s) >=4.2 <4.2.24Fix Suggestion:
Update to version 4.2.24django (PYTHON):
Affected version(s) >=5.2 <5.2.6Fix Suggestion:
Update to version 5.2.6Django (PYTHON):
Affected version(s) >=5.2 <5.2.6Fix Suggestion:
Update to version 5.2.6Related ResourcesĀ (13)
Do you need more information?
Contact UsCVSS v4
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.1
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
LOW
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
EPSS
Base Score:
0.02