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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| djangoproject | Django | 4.2 – < 4.2.24, 5.1 – < 5.1.12, 5.2 – < 5.2.6 | 4.2.24 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 3:4.2.24-1 | — |
| Debian 13 | python-django | 3:4.2.27-0+deb13u1 | DSA-6117-1 |
| Debian 12 | python-django | 3:3.2.25-0+deb12u1 | DSA-6136-1 |
| Debian 11 | python-django | 2:2.2.28-1~deb11u8 | DLA-4301-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | python-django | 3:4.2.11-1ubuntu1.10 | USN-7736-1 |
| Ubuntu 22.04 LTS | python-django | 2:3.2.12-2ubuntu1.21 | USN-7736-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | python-django | 2:2.2.12-1ubuntu0.29+esm3 | USN-7736-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Satellite Capsule 6 | cjson | 1.7.18-2.el8sat | RHSA-2025:17614, RHSA-2025:17613, RHSA-2025:17606 |
| Red Hat Satellite Capsule 6 | puppet-agent | 7.34.0-4.el8sat | RHSA-2025:17614, RHSA-2025:17613, RHSA-2025:17606 |
| Red Hat Satellite Capsule 6 | python-django +1 | 4.2.24-0.1.el8pc | RHSA-2025:17614, RHSA-2025:17613, RHSA-2025:17606 |
| Red Hat Satellite 6 | cjson | 1.7.18-2.el8sat | RHSA-2025:17614, RHSA-2025:17613, RHSA-2025:17606 |
| Red Hat Satellite 6 | puppet-agent | 7.34.0-4.el8sat | RHSA-2025:17614, RHSA-2025:17613, RHSA-2025:17606 |
| Red Hat Satellite 6 | python-django +1 | 4.2.24-0.1.el8pc | RHSA-2025:17614, RHSA-2025:17613, RHSA-2025:17606 |
| Red Hat OpenStack 18 | python-django +1 | 3.2.12-9.el9ost | RHSA-2025:17500 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 17 | python-django +1 | 2.2.24-12.el9ost | RHSA-2025:17498 |
| Red Hat OpenStack 16 | python-django20 +1 | 2.0.13-20.el8ost | RHSA-2025:17499 |
| Red Hat Ansible Automation Platform Developer 2 | python3.11-django | 4.2.24-1.el8ap | RHSA-2025:16487 |
| Red Hat Ansible Automation Platform 2 | automation-controller-venv-tower | 4.6.20-1.el8ap | RHSA-2025:16487 |
| Red Hat Ansible Automation Platform 2 | python-django +1 | 4.2.24-1.el9ap | RHSA-2025:16403 |
| Red Hat Ansible Automation Platform 2 | python39-django +2 | 4.2.24-1.el8ap | RHSA-2025:16487, RHSA-2025:16403 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | python-Django | 4.2.11-150600.3.30.1 | SUSE-SU-2025:03074-1 |
| SLES 15 SP6 | python-Django | 4.2.11-150600.3.30.1 | SUSE-SU-2025:03074-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Django | 5.2.6-1.1 | openSUSE-SU-2025:15527-1 |
| openSUSE Tumbleweed | python-Django4 | 4.2.24-1.1 | openSUSE-SU-2025:15528-1 |
| openSUSE Tumbleweed | python-Django5 | 5.2.16-1.1 | openSUSE-SU-2026:11270-1 |
| openSUSE Tumbleweed | python-Django6 | 6.0-1.1 | openSUSE-SU-2026:10005-1 |
| openSUSE Leap 15.6 | python-Django | 4.2.11-150600.3.30.1 | SUSE-SU-2025:03074-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-django | 4.2.24-r0 | — |
| Alpine v3.23 | py3-django | 4.2.24-r0 | — |
| Alpine v3.22 | py3-django | 4.2.24-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 5 repositories
-
sw0rd1ight/CVE-2025-57833 ★ 6 · Nov 2, 2025
Analysis and reproduction of CVE-2025-57833
-
loic-houchi/Django-faille-CVE-2025-57833_test ★ 2 · Sep 9, 2025
-
Mkway/CVE-2025-57833 ★ 2 · Sep 5, 2025
We've set up an environment to test CVE-2025-57833. This environment was built using AI, so it's subject to ongoing modification.
-
Gayang2902/CVE-2025-57833 ★ 1 · Nov 27, 2025
CVE-2025-57833 PoC (취약한 도서 검색 서비스)
-
ianoboyle/CVE-2025-57833 ★ 1 · Oct 8, 2025
Example Vulnerable application for CVE-2025–57833
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | < 4.2.24 | 4.2.24 | GHSA-6w2r-r2m5-xq5w |
| PyPI | django | >= 5.0a1, < 5.1.12 | 5.1.12 | GHSA-6w2r-r2m5-xq5w |
| PyPI | django | >= 5.2a1, < 5.2.6 | 5.2.6 | GHSA-6w2r-r2m5-xq5w |
| PyPI | django | >= 4.2, < 4.2.24 · >= 5.1, < 5.1.12 · >= 5.2, < 5.2.6 | 4.2.24, 5.1.12, 5.2.6 | PYSEC-2025-105 |
Advisories 19
- openSUSE-SU-2026:11270-1 python313-Django5-5.2.16-1.1 on GA media SUSE / openSUSE Security Updates · Jul 15, 2026
- RHSA-2025:17614 Red Hat Security Advisory: Satellite 6.15.5.5 Async Update Red Hat Security Advisories (RHSA) · Jun 30, 2026
- RHSA-2025:17606 Red Hat Security Advisory: Satellite 6.17.5 Async Update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2025:17613 Red Hat Security Advisory: Satellite 6.16.5.4 Async Update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2025:17499 Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (python-django20) security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2025:17500 Red Hat Security Advisory: Red Hat OpenStack Services on OpenShift 18.0 (python-django) security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2025:17498 Red Hat Security Advisory: Red Hat OpenStack Platform 17.1 (python-django) security update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2025:16487 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- RHSA-2025:16403 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Jun 29, 2026
- openSUSE-SU-2026:10005-1 python312-Django6-6.0-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15527-1 python311-Django-5.2.6-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- openSUSE-SU-2025:15528-1 python311-Django4-4.2.24-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:03074-1 Security update for python-Django SUSE / openSUSE Security Updates · Mar 23, 2026
- DLA-4301-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2025-1961 Django (FilteredRelation): Schwachstelle ermöglicht SQL injection BSI CERT-Bund (WID) · Feb 19, 2026
- DSA-6136-1 python-django - security update Debian Security (DSA / DLA) · Feb 15, 2026
- USN-7736-1 python-django vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- DSA-6117-1 python-django - security update Debian Security (DSA / DLA) · Jan 31, 2026
- WID-SEC-2025-2244 Red Hat Satellite (cJSON, django, rexml): Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 25, 2026