CVE-2025-57833
High
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().
SeverityHigh
CVSS7.1
Exploit probability—
Product
Django
PublishedSep 3, 2025
First seenSep 3, 2025
Weakness typeCWE-89SQL injection
How to fix
Update
- djangoproject django4.2.24, 5.1.12, 5.2.6 or later
- django4.2.24, 5.1.12, 5.2.6 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| djangoproject django | 4.2 ≤ v < 4.2.24, 5.1 ≤ v < 5.1.12, 5.2 ≤ v < 5.2.6 | 4.2.24, 5.1.12, 5.2.6 |
| djangoPyPI | v < 4.2.24, 5.0a1 ≤ v < 5.1.12, 5.2a1 ≤ v < 5.2.6, 4.2 ≤ v < 4.2.24, 5.1 ≤ v < 5.1.12, 5.2 ≤ v < 5.2.6 | 4.2.24, 5.1.12, 5.2.6 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.