CVE-2025-57833
Severity CVSS v4.0:
Pending analysis
Type:
CWE-89
SQL Injection
Publication date:
03/09/2025
Last modified:
04/11/2025
Description
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().
Impact
Base Score 3.x
7.10
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 4.2 (including) | 4.2.24 (excluding) |
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 5.1 (including) | 5.1.12 (excluding) |
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 5.2 (including) | 5.2.6 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/g/django-announce
- https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898
- https://www.djangoproject.com/weblog/2025/sep/03/security-releases/
- http://www.openwall.com/lists/oss-security/2025/09/03/3
- https://lists.debian.org/debian-lts-announce/2025/09/msg00017.html



