CVEs / CVE-2025-57833
CVE-2025-57833: djangoproject Django vulnerability
- high 8.1 CVSS 3.1 (NVD)
- EPSS 28.2% chance of exploitation in the next 30 days, higher than 98% of CVEs (3 Nov 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2025-57833
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().
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| djangoproject Django | from 4.2, before 4.2.24 | 4.2.24 |
| djangoproject Django | from 5.1, before 5.1.12 | 5.1.12 |
| djangoproject Django | from 5.2, before 5.2.6 | 5.2.6 |
| Product | Affected | Fixed in |
|---|---|---|
| django (PyPI) | before 4.2.24 | 4.2.24 |
| django (PyPI) | from 5.0a1, before 5.1.12 | 5.1.12 |
| django (PyPI) | from 5.2a1, before 5.2.6 | 5.2.6 |
Package versions from GHSA-6w2r-r2m5-xq5w.
Exploitation
Not in the CISA Known Exploited Vulnerabilities catalog as of 3 Nov 2026.
Severity
| CVSS 3.1 | 8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-89 |
References
- CVE-2025-57833 on NVD
- CVE-2025-57833 on OSV
- 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
- http://www.openwall.com/lists/oss-security/2025/09/03/3
- https://lists.debian.org/debian-lts-announce/2025/09/msg00017.html
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.