CVE-2025-57833: djangoproject django SQL Injection
Vulnerability summary
CVE-2025-57833 is a high (CVSS 8.1) SQL Injection vulnerability in djangoproject django. EPSS estimates a 26.11% chance of exploitation in the next 30 days, higher than 97.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 8 · Related 3Timeline
- 03-09-2025PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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().
CVSS metrics
7 scores · 7 sources · 1 version- CVE.orgCNA7.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:NDiffers
- OSV · PypiEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · Red hatEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated7.1HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:NDiffers
EPSS trend
Probability
26.11%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
+10.45 pp
From 15.66% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (medium.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Redhat6 products
- python-django< 0:2.2.24-12.el9ost | < 0:3.2.12-9.el9ost | < 0:4.2.24-1.el9ap
- python-django20< 0:2.0.13-20.el8ost
- python3-django< 0:2.2.24-12.el9ost | < 0:3.2.12-9.el9ost | < 0:4.2.24-1.el9ap
- python3-django20< 0:2.0.13-20.el8ost
- python39-django< 0:4.2.24-1.el8ap
Opensuse3 products
- python-Django4&distro=openSUSE Tumbleweed< 4.2.24-1.1
- python-Django&distro=openSUSE Leap 15.6< 4.2.11-150600.3.30.1
- python-Django&distro=openSUSE Tumbleweed< 5.2.6-1.1
Suse2 products
- python-Django&distro=SUSE Linux Enterprise Module for Package Hub 15 SP6< 4.2.11-150600.3.30.1
- python-Django&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 4.2.11-150600.3.30.1
Chainguard1 product
- awx< 24.6.1-r14
Debian1 product
- python-django< 3:3.2.25-0+deb12u1 | < 3:4.2.27-0+deb13u1 | < 3:4.2.24-1 | < 2:2.2.28-1~deb11u8
Djangoproject1 product
- django≥ 4.2, < 4.2.24 | ≥ 5.1, < 5.1.12 | ≥ 5.2, < 5.2.6
Mageia1 product
- python-django< 4.1.13-1.6.mga9
PyPI1 product
- django< 4.2.24 | ≥ 5.0a1, < 5.1.12 | ≥ 5.2a1, < 5.2.6 | ≥ 5.2, < 5.2.6
Ubuntu1 product
- python-django< 2:2.2.12-1ubuntu0.29+esm3 | < 2:3.2.12-2ubuntu1.21 | < 3:4.2.11-1ubuntu1.10
9 vendors · 17 products
References
37 linksShow all 37 references
- github.com/django/djangoPACKAGE