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().
References
| Link | Resource |
|---|---|
| https://docs.djangoproject.com/en/dev/releases/security/ | Vendor Advisory |
| https://groups.google.com/g/django-announce | Vendor Advisory |
| https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898 | Exploit Third Party Advisory |
| https://www.djangoproject.com/weblog/2025/sep/03/security-releases/ | Vendor Advisory |
Configurations
Configuration 1 (hide)
|
History
20 Oct 2025, 19:27
| Type | Values Removed | Values Added |
|---|---|---|
| First Time |
Djangoproject django
Djangoproject |
|
| CPE | cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | |
| References | () https://docs.djangoproject.com/en/dev/releases/security/ - Vendor Advisory | |
| References | () https://groups.google.com/g/django-announce - Vendor Advisory | |
| References | () https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898 - Exploit, Third Party Advisory | |
| References | () https://www.djangoproject.com/weblog/2025/sep/03/security-releases/ - Vendor Advisory |
08 Sep 2025, 16:15
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
03 Sep 2025, 21:15
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2025-09-03 21:15
Updated : 2025-10-20 19:27
NVD link : CVE-2025-57833
Mitre link : CVE-2025-57833
CVE.ORG link : CVE-2025-57833
JSON object : View
Products Affected
djangoproject
- django
CWE
CWE-89
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
