CVE-2025-57833: Django · Issue Was Discovered
Affects djangoSource GCVE Database
Not known to be exploited · 26% EPSS · CVSS 7.1 High · patch available : patch django soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 26.1% chance of exploitation in 30 days – higher than 97% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available
Exploitation evidence
Disclosed: evidence found.
CVE published 3 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Red Hatredhat/python-djangopkg:rpm/redhat/python-djangoOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Patches are available and should be applied promptly. Users should upgrade Django to versions 4.2.24 or later, 5.1.12 or later, and 5.2.6 or later as appropriate. For Red Hat OpenStack Services on OpenShift 18.0, updated python-django packages are provided. Refer to the Red Hat advisory RHSA-2025:17500 and https://access.redhat.com/articles/11258 for detailed update instructions. No additional mitigation beyond applying the official patches is indicated.
Description
A SQL injection vulnerability exists in Django versions 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6. The issue arises in the FilteredRelation feature when column aliases are constructed using a crafted dictionary passed as **kwargs to QuerySet.annotate() or QuerySet.alias(). This vulnerability allows injection via SQL column aliases. Red Hat has issued an important security advisory with patches available to address this issue.
References
- access.redhat.com/errata/RHSA-2025:17500 (opens in a new tab)
- access.redhat.com/security/updates/classification/ (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2392990 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/advisories/2025/rhsa-2025_17500.json (opens in a new tab)
- docs.djangoproject.com/en/dev/releases/security/ (opens in a new tab)
- groups.google.com/g/django-announce (opens in a new tab)
- medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-57833 (opens in a new tab)
- djangoproject.com/weblog/2025/sep/03/security-releases/ (opens in a new tab)
- openwall.com/lists/oss-security/2025/09/03/3 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/09/msg00017.html (opens in a new tab)