CVE-2025-57833Django is subject to SQL injection through its column aliases
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.8% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.8%
- percentile 55%
- Fix
- Named by a source
- CVE published 3 Sept 2025
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.8% (+1) · Public exploit or proof of concept (+15) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 4.2.24 / 5.1.12 / 5.2.6 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/102965ea93072fe3c39a30be437c683ec1106ef5
- Commit / pull request: https://github.com/django/django/commit/31334e6965ad136a5e369993b01721499c5d1a92
- Commit / pull request: https://github.com/django/django/commit/4c044fcc866ec226f612c475950b690b0139d243
- Advisory: https://docs.djangoproject.com/en/dev/releases/security/
- Advisory: https://groups.google.com/g/django-announce
- Advisory: https://www.djangoproject.com/weblog/2025/sep/03/security-releases/
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2025-57833
Who should check
django (PyPI) pkg:pypi/django
- Affected< 4.2.24Fixed in4.2.24OSV (GHSA-6w2r-r2m5-xq5w)
- Affected>= 5.0a1, < 5.1.12Fixed in5.1.12OSV (GHSA-6w2r-r2m5-xq5w)
- Affected>= 5.2a1, < 5.2.6Fixed in5.2.6OSV (GHSA-6w2r-r2m5-xq5w)
- Affected>= 4.2, < 4.2.24Fixed in4.2.24OSV (PYSEC-2025-105)
- Affected>= 5.1, < 5.1.12Fixed in5.1.12OSV (PYSEC-2025-105)
- Affected>= 5.2, < 5.2.6Fixed in5.2.6OSV (PYSEC-2025-105)
djangoproject django product:djangoproject/django
- Affected>= 4.2, < 4.2.24Affected range ends before4.2.24as published by CNA (CVE List)
- Affected>= 5.1, < 5.1.12Affected range ends before5.1.12as published by CNA (CVE List)
- Affected>= 5.2, < 5.2.6Affected range ends before5.2.6as published by CNA (CVE List)
- Affected>= 4.2, < 4.2.24Affected range ends before4.2.24as published by CPE data (via the NVD API)
- Affected>= 5.1, < 5.1.12Affected range ends before5.1.12as published by CPE data (via the NVD API)
- Affected>= 5.2, < 5.2.6Affected range ends before5.2.6as published by CPE data (via the NVD API)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 8.1 HIGH (version 3.1)
- Score from
- NVD
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-89
- Exploitation (CISA SSVC)
- poc
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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().
Update history
- 3 Sept 2025Published
References
- advisoryhttps://docs.djangoproject.com/en/dev/releases/security/
- advisoryhttps://groups.google.com/g/django-announce
- exploithttps://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898
- advisoryhttps://www.djangoproject.com/weblog/2025/sep/03/security-releases/
- otherhttp://www.openwall.com/lists/oss-security/2025/09/03/3
- otherhttps://lists.debian.org/debian-lts-announce/2025/09/msg00017.html
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-57833
- commit / pull requesthttps://github.com/django/django/commit/102965ea93072fe3c39a30be437c683ec1106ef5
- commit / pull requesthttps://github.com/django/django/commit/31334e6965ad136a5e369993b01721499c5d1a92
- commit / pull requesthttps://github.com/django/django/commit/4c044fcc866ec226f612c475950b690b0139d243
- otherhttps://docs.djangoproject.com/en/dev/releases/security
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-105.yaml
- otherhttps://www.djangoproject.com/weblog/2025/sep/03/security-releases
- advisoryhttps://github.com/advisories/GHSA-6w2r-r2m5-xq5w
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2025-57833 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-6w2r-r2m5-xq5w (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2025-105 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 22 min ago · osv 22 min ago · nvd 83 min ago · epss 21 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2025-57833, GHSA-6w2r-r2m5-xq5w, PYSEC-2025-105