CVE-2025-57833

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

Configuration 1 (hide)

OR cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*

History

20 Oct 2025, 19:27

Type Values Removed Values Added
First Time Djangoproject django
Djangoproject
CPE cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
References () https://docs.djangoproject.com/en/dev/releases/security/ - () https://docs.djangoproject.com/en/dev/releases/security/ - Vendor Advisory
References () https://groups.google.com/g/django-announce - () https://groups.google.com/g/django-announce - Vendor Advisory
References () https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898 - () https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898 - Exploit, Third Party Advisory
References () https://www.djangoproject.com/weblog/2025/sep/03/security-releases/ - () https://www.djangoproject.com/weblog/2025/sep/03/security-releases/ - Vendor Advisory

08 Sep 2025, 16:15

Type Values Removed Values Added
References
  • () https://medium.com/@EyalSec/django-unauthenticated-0-click-rce-and-sql-injection-using-default-configuration-059964f3f898 -

03 Sep 2025, 21:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-09-03 21:15

Updated : 2025-10-20 19:27


NVD link : CVE-2025-57833

Mitre link : CVE-2025-57833

CVE.ORG link : CVE-2025-57833


JSON object : View

Products Affected

djangoproject

  • django
CWE
CWE-89

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')