CVE-2025-57833 Details
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().
A SQL injection vulnerability has been identified in Django versions 4.2 prior to 4.2.24, 5.1 prior to 5.1.12, and 5.2 prior to 5.2.6. The issue arises in the FilteredRelation component, where column aliases can be manipulated through a crafted dictionary passed as keyword arguments to QuerySet.annotate() or QuerySet.alias(). This vulnerability allows for unauthorized SQL code execution, potentially leading to data exposure or modification.
Users can upgrade to Django 5.2.6, 5.1.12, or 4.2.24 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| djangoproject django | >= 4.2, < 4.2.24 >= 5.1, < 5.1.12 >= 5.2, < 5.2.6 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 4, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 20, 2025 | Initial Analysis | [email protected] |
| Sep 8, 2025 | CVE Modified | [email protected] |
| Sep 3, 2025 | New CVE Received | [email protected] |