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().
History

Thu, 04 Sep 2025 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Djangoproject
Djangoproject django
Vendors & Products Djangoproject
Djangoproject django

Thu, 04 Sep 2025 00:15:00 +0000

Type Values Removed Values Added
Title django: Django SQL injection in FilteredRelation column aliases
References
Metrics threat_severity

None

threat_severity

Important


Wed, 03 Sep 2025 21:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 03 Sep 2025 20:30:00 +0000

Type Values Removed Values Added
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().
Weaknesses CWE-89
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2025-09-03T00:00:00.000Z

Updated: 2025-09-03T20:49:02.740Z

Reserved: 2025-08-20T00:00:00.000Z

Link: CVE-2025-57833

cve-icon Vulnrichment

Updated: 2025-09-03T20:48:58.585Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-09-03T21:15:32.850

Modified: 2025-09-04T15:35:29.497

Link: CVE-2025-57833

cve-icon Redhat

Severity : Important

Publid Date: 2025-09-03T00:00:00Z

Links: CVE-2025-57833 - Bugzilla