CVE-2025-57833 in the critical feed json
Django is subject to SQL injection through its column aliases
published 2025-09-03 14 mo ago modified 2026-09-10 59 d ago also BIT-django-2025-57833 , EUVD-2025-26641 , GHSA-6w2r-r2m5-xq5w , PYSEC-2025-105
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 28.3%
- EPSS 28.3% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known
Summary
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().
Patch / fix
- pypi django 4.2.24, 5.1.12, 5.2.6
- bitnami django 4.2.24, 5.1.12, 5.2.6
- djangoproject Django 4.2.24, 5.1.12, 5.2.6
- python-django Debian 12 3:3.2.25-0+deb12u1
- python-django Debian 13 3:4.2.27-0+deb13u1
- python-django Debian 14 3:4.2.24-1
debian advisories DEBIAN-CVE-2025-57833
- python-django Ubuntu 22.04 LTS 2:3.2.12-2ubuntu1.21
- python-django Ubuntu 24.04 LTS 3:4.2.11-1ubuntu1.10
- python-django Ubuntu Pro 20.04 LTS 2:2.2.12-1ubuntu0.29+esm3
ubuntu advisories UBUNTU-CVE-2025-57833
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- cjson satellite capsule 6.16, satellite capsule 6.15, satellite 6.16 +1 more 1.7.18-2.el8sat
- puppet-agent satellite capsule 6.15, satellite 6.15 7.34.0-4.el8sat
- python-django satellite capsule 6.16, satellite capsule 6.15, satellite 6.16 +1 more 4.2.24-0.1.el8pc
- python3.11-django satellite capsule 6.16, satellite capsule 6.15, satellite 6.16 +1 more 4.2.24-0.1.el8pc
- cjson satellite capsule 6.17, satellite capsule 6.16, satellite 6.17 +1 more 1.7.18-2.el9sat
- puppet-agent satellite capsule 6.16, satellite 6.16 8.8.1-3.el8sat
- puppet-agent satellite capsule 6.17, satellite capsule 6.16, satellite 6.17 +1 more 8.8.1-3.el9sat
- python-django satellite capsule 6.17, satellite capsule 6.16, satellite 6.17 +1 more 4.2.24-0.1.el9pc
red hat advisories RHSA-2025:17614RHSA-2025:17613RHSA-2025:17606RHSA-2025:17500RHSA-2025:17498RHSA-2025:17499
- python-Django SLE Module for Package Hub 15 SP7, SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 4.2.11-150600.3.30.1
suse advisories SUSE-SU-2025:03074-1
- python-Django5 openSUSE Tumbleweed 5.2.16-1.1
- python-Django6 openSUSE Tumbleweed 6.0-1.1
- python-Django openSUSE Tumbleweed 5.2.6-1.1
- python-Django4 openSUSE Tumbleweed 4.2.24-1.1
opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:10005-1openSUSE-SU-2025:15527-1openSUSE-SU-2025:15528-1
- py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 4.2.24-r0
alpine advisories ALPINE-CVE-2025-57833
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-57833 updated cvss 7.1
django: Django SQL injection in FilteredRelation column aliases
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/lightspeed-rhel8, ansible-automation-platform-25/lightspeed-rhel8affected: workaround, no fix available
-
Red Hat Certification for Red Hat Enterprise Linux 7 python-djangoaffected: workaround, no fix available “Fix deferred”
-
Red Hat Update Infrastructure 4 for Cloud Providers python-djangoaffected: workaround, no fix planned “Will not fix”
-
Red Hat Ansible Automation Platform 2.4 for RHEL 8 python39-django 4.2.24-1.el8ap, python3x-django 4.2.24-1.el8ap, ansible-automation-platform-24/lightspeed-rhel8 2.4.250225-18fixed: vendor fix RHSA-2025:16404
-
Red Hat Ansible Automation Platform 2.4 for RHEL 9 python-django 4.2.24-1.el9ap, python3-django 4.2.24-1.el9apfixed: vendor fix RHSA-2025:16403
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 python3.11-django 4.2.24-1.el8ap, automation-controller-venv-tower 4.6.20-1.el8ap, ansible-automation-platform-25/lightspeed-rhel8 2.5.250924-1 Red Hat Ansible Automation Platform 2.5 for RHEL 9 python3.11-django 4.2.24-1.el9ap, automation-controller-venv-tower 4.6.20-1.el9apfixed: vendor fix RHSA-2025:16487
-
Red Hat OpenStack Platform 16.2 python-django20 2.0.13-20.el8ost, python3-django20 2.0.13-20.el8ostfixed: vendor fix RHSA-2025:17499
-
Red Hat OpenStack Platform 17.1 python-django 2.2.24-12.el9ost, python3-django 2.2.24-12.el9ostfixed: vendor fix RHSA-2025:17498
show 6 moreshow fewer
-
Red Hat OpenStack Services on OpenShift 18.0 python-django 3.2.12-9.el9ost, python3-django 3.2.12-9.el9ostfixed: vendor fix RHSA-2025:17500
-
Red Hat Satellite 6.15 for RHEL 8 python-django 4.2.24-0.1.el8pc, python3.11-django 4.2.24-0.1.el8pcfixed: vendor fix RHSA-2025:17614
-
Red Hat Satellite 6.16 for RHEL 8 python-django 4.2.24-0.1.el8pc, python3.11-django 4.2.24-0.1.el8pc Red Hat Satellite 6.16 for RHEL 9 python-django 4.2.24-0.1.el9pc, python3.11-django 4.2.24-0.1.el9pcfixed: vendor fix RHSA-2025:17613
-
Red Hat Satellite 6.17 for RHEL 9 python-django 4.2.24-0.1.el9pc, python3.11-django 4.2.24-0.1.el9pcfixed: vendor fix RHSA-2025:17606
-
Red Hat OpenShift Service Mesh 3 openshift-service-mesh/istio-cni-rhel9, openshift-service-mesh/istio-pilot-rhel9, openshift-service-mesh/istio-proxyv2-rhel9, openshift-service-mesh/istio-rhel9-operator, openshift-service-mesh/istio-must-gather-rhel9, openshift-service-mesh/istio-sail-operator-bundle, +1 morenot affected: component not present
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-25/ansible-dev-tools-rhel8, ansible-automation-platform-tech-preview/ansible-devspaces-rhel9 Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-automation-platform-24/hub-rhel8 4.9.5-3, ansible-automation-platform-24/hub-web-rhel8 4.9.5-3, ansible-automation-platform-24/controller-rhel8 4.5.25-3, ansible-automation-platform-24/de-minimal-rhel8 1.0.8-20, ansible-automation-platform-24/ee-minimal-rhel8 1.0.0-965, ansible-automation-platform-24/hub-rhel8-operator 2.4-181, +14 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 ansible-automation-platform-24/de-minimal-rhel9 1.0.8-19, ansible-automation-platform-24/ee-minimal-rhel9 1.0.0-966, ansible-automation-platform-24/de-supported-rhel9 1.0.8-16, ansible-automation-platform-24/ee-supported-rhel9 1.0.0-1087, ansible-automation-platform-24/ansible-builder-rhel9 3.0.1-152, ansible-automation-platform-24/ansible-python-base-rhel9 1.0.0-779, +1 more Red Hat Ansible Automation Platform 2.5 for RHEL 8 molecule 25.7.0-1.el8ap, ansible-sign 0.1.2-1.el8ap, ansible-lint 25.8.2-1.el8ap, automation-hub 4.10.8-1.el8ap, ansible-creator 25.8.0-1.el8ap, aap-azure-billing 0.3.1-1.el8ap, +65 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 molecule 25.7.0-1.el9ap, ansible-sign 0.1.2-1.el9ap, ansible-lint 25.8.2-1.el9ap, automation-hub 4.10.8-1.el9ap, ansible-creator 25.8.0-1.el9ap, ansible-dev-tools 25.8.3-1.el9ap, +42 more Red Hat Satellite 6.15 for RHEL 8 cjson 1.7.18-2.el8sat, satellite 6.15.5.5-1.el8sat, puppet-agent 7.34.0-4.el8sat, satellite-cli 6.15.5.5-1.el8sat, satellite-common 6.15.5.5-1.el8sat, satellite-capsule 6.15.5.5-1.el8satnot affected: vulnerable code not present
+3 more productsfewer
Red Hat Satellite 6.16 for RHEL 8 cjson 1.7.18-2.el8sat, puppet-agent 8.8.1-3.el8sat, satellite 6.16.5.4-1.el8sat, rubygem-kafo 7.4.0.1-1.el8sat, satellite-cli 6.16.5.4-1.el8sat, rubygem-katello 4.14.0.14-1.el8sat, +5 more Red Hat Satellite 6.16 for RHEL 9 cjson 1.7.18-2.el9sat, puppet-agent 8.8.1-3.el9sat, satellite 6.16.5.4-1.el9sat, rubygem-kafo 7.4.0.1-1.el9sat, satellite-cli 6.16.5.4-1.el9sat, rubygem-katello 4.14.0.14-1.el9sat, +5 more Red Hat Satellite 6.17 for RHEL 9 cjson 1.7.18-2.el9sat, foreman 3.14.0.8-1.el9sat, satellite 6.17.5-1.el9sat, puppet-agent 8.8.1-3.el9sat, foreman-cli 3.14.0.8-1.el9sat, foreman-ec2 3.14.0.8-1.el9sat, +18 more
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 14 mo ago
Exploit prediction
28.27% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- medium.com https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N |
| GitHub | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N |
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N |
| OSV | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | <4.2.24 >=5.0a1, <5.1.12 >=5.2a1, <5.2.6 >=4.2, <4.2.24 >=5.1, <5.1.12 >=5.2, <5.2.6 |
4.2.24 5.1.12 5.2.6 |
| bitnami | django | <4.2.24 >=5.0.0, <5.1.12 >=5.2.0, <5.2.6 |
4.2.24 5.1.12 5.2.6 |
Affected products
- djangoproject Django
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
- Technology feeds
References
-
github.com
/django/django/commit/102965ea93072fe3c39a30be437c683ec1106ef5
web
-
github.com
/django/django/commit/31334e6965ad136a5e369993b01721499c5d1a92
web
-
github.com
/django/django/commit/4c044fcc866ec226f612c475950b690b0139d243
web
-
medium.com
/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898
web, exploit, third-party-advisory, advisory, evidence
-
docs.djangoproject.com
/en/dev/releases/security/
vendor-advisory, advisory
-
groups.google.com
/g/django-announce
web, vendor-advisory, advisory
-
djangoproject.com
/weblog/2025/sep/03/security-releases/
vendor-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2025/09/msg00017.html
web
-
openwall.com
/lists/oss-security/2025/09/03/3
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-57833
advisory, web
-
docs.djangoproject.com
/en/dev/releases/security
web
-
github.com
/django/django
package
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-105.yaml
web
-
djangoproject.com
/weblog/2025/sep/03/security-releases
web
-
github.com
/advisories/GHSA-6w2r-r2m5-xq5w
advisory
Sources
- CVE List CVE-2025-57833
- GitHub Advisory GHSA-6w2r-r2m5-xq5w
- NVD CVE-2025-57833
- OSV BIT-django-2025-57833
- OSV PYSEC-2025-105
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.