CVE-2025-57833
A public proof of concept exists; no exploitation attested.
- Published2025-09-03
- Fixed in5.2.6 · 5.1.12 · 4.2.24
- WeaknessCWE-89
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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().
Timeline
dates in UTC- 2025-09-0321:15CVE publishedNVD
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 5.2 | ≥ 5.2, < 5.2.6 | 5.2.6 | NVD · OSV |
| 5.2 | ≥ 5.2.0, < 5.2.6 | 5.2.6 | OSV |
| 5.2 | ≥ 5.2a1, < 5.2.6 | 5.2.6 | OSV |
| 5.1 | ≥ 5.1, < 5.1.12 | 5.1.12 | NVD · OSV |
| 5.x | ≥ 5.0.0, < 5.1.12 | 5.1.12 | OSV |
| 5.x | ≥ 5.0a1, < 5.1.12 | 5.1.12 | OSV |
| 4.2 | ≥ 4.2, < 4.2.24 | 4.2.24 | NVD · OSV |
| 4.2 | < 4.2.24 | 4.2.24 | OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As mitre, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- djangoproject Djangoother versions: unknownAffected
- ≥ 4.2, < 4.2.24fixed in 4.2.24custom
- ≥ 5.1, < 5.1.12fixed in 5.1.12custom
- ≥ 5.2, < 5.2.6fixed in 5.2.6custom
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-09-08
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- automation-controller-venv-towerRed Hat:ansible_automation_platform:2.5::el9all versions · fixed in 0:4.6.20-1.el9ap
- automation-controller-venv-towerRed Hat:ansible_automation_platform:2.5::el8all versions · fixed in 0:4.6.20-1.el8ap
- awxChainguardall versions · fixed in 24.6.1-r14
- cjsonRed Hat:satellite:6.17::el9all versions · fixed in 0:1.7.18-2.el9satand 2 other packages
- cjsonRed Hat:satellite:6.16::el9all versions · fixed in 0:1.7.18-2.el9satand 2 other packages
- cjsonRed Hat:satellite:6.16::el8all versions · fixed in 0:1.7.18-2.el8satand 2 other packages
- cjsonRed Hat:satellite:6.15::el8all versions · fixed in 0:1.7.18-2.el8satand 2 other packages
- cjsonRed Hat:satellite_capsule:6.17::el9all versions · fixed in 0:1.7.18-2.el9satand 2 other packages
75 more package ranges on OSV.dev
Vendor advisories
django: Django SQL injection in FilteredRelation column aliases
ansible-automation-platform-24/lightspeed-rhel8 as a component of Red Hat Ansible Automation Platform 2 · ansible-automation-platform-25/lightspeed-rhel8 as a component of Red Hat Ansible Automation Platform 2 · python-django.src as a component of Red Hat Certification for Red Hat Enterprise Linux 7 · +1 more
Red Hat Security Advisory: Satellite 6.15.5.5 Async Update
Red Hat Security Advisory: Satellite 6.16.5.4 Async Update
Red Hat Security Advisory: Satellite 6.17.5 Async Update
Red Hat Security Advisory: Red Hat OpenStack Services on OpenShift 18.0 (python-django) security update
Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (python-django20) security update
5 more advisories
Fix
- Update Django to 5.2.6 · 5.1.12 · 4.2.24
- Vendor fix Red Hat Product Security RHSA-2025:17614 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2025:17606 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For detailed instructions how to apply this update, refer to: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.17/html/updating_red_hat_satellite/index
- Vendor fix Red Hat Product Security RHSA-2025:17500 · 2 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2025:16514 · 4 productsRed Hat Ansible Automation Platform
- Workaround from the vendor Red Hat Product Security RHSA-2025:17614 · 25 productsMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Advisories and patches
- docs.djangoproject.comVendor Advisory
- groups.google.comVendor Advisory
- www.djangoproject.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- CISA-ADP (SSVC)PoC stated2025-09-08
- PoC-in-GitHub5 repositories, unverifiedknown since 2026-11-01Mkway/CVE-2025-57833loic-houchi/Django-faille-CVE-2025-57833_testianoboyle/CVE-2025-57833sw0rd1ight/CVE-2025-57833Gayang2902/CVE-2025-57833
- Metasploit modules
- none listed Metasploit Framework
Sources
- CISA-ADPSSVC decisionpoc2025-09-08
- CNACVSS 3.17.1known since 2026-10-23
- NVDCVSS 3.18.1read 2026-10-23
- CNAweakness (CWE)CWE-89known since 2026-10-23
- FIRST EPSSEPSS score28.3 %read 2026-11-09
- PoC-in-GitHubproof of concept5known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryHIGH2025-09-09
Identifiers
- BIT-django-2025-57833same flawBitnami · Apache-2.0
- CGA-4hwj-w29w-5jgpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-m4c5-xg83-fm97same flawChainguard · CC-BY-NC-ND-4.0
- EUVD-2025-26641same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-6w2r-r2m5-xq5wsame flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2025-105same flawPyPA Advisory Database · CC-BY-4.0
- DLA-4301-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-6117-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-6136-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2025-0229advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2025-2231advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2234advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2235advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2236advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2237advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2025-2354advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2025:15527-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15528-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:10005-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:11270-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2025:16403advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:16487advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:17498advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:17499advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:17500advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:17606advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:17613advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2025:17614advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-SU-2025:03074-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-7736-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2025-09-03
- Last Modified
- 2026-06-17
- NVD status
- Modified
- GitHub Advisory
- GHSA-6w2r-r2m5-xq5w
Frequently asked questions
What is CVE-2025-57833?
Is CVE-2025-57833 actively exploited?
What is the CVSS score for CVE-2025-57833?
Running Django? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-6w2r-r2m5-xq5w
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0