CVE-2025-57833

published 3 Sep 2025 · updated 4 Nov 2025

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

7.6HighCVSS 7.1EPSS 27%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 27%. Fixed in 4.2.24, 5.1.12 and 5.2.6.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
djangoproject>=4.2 <4.2.24, >=5.1 <5.1.12, >=5.2 <5.2.64.2.24, 5.1.12, 5.2.6

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-57833 severity on Zeptric[![CVE-2025-57833](https://zeptric.io/badge/cve/CVE-2025-57833.svg)](https://zeptric.io/cve/CVE-2025-57833)