cve.bz

CVE-2025-57833

8.1 highEPSS 26%

High (8.1) in djangoproject django. EPSS 26% chance of exploitation in the next 30 days. Fixed in django 4.2.24, 5.1.12, 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().

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
26% chance of exploitation in the next 30 days; higher than 97% of CVEs (scores of 2026-10-31)
CWE
CWE-89
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6w2r-r2m5-xq5wPyPIdjango<4.2.244.2.24
GHSA-6w2r-r2m5-xq5wPyPIdjango>=5.0a1 <5.1.125.1.12
GHSA-6w2r-r2m5-xq5wPyPIdjango>=5.2a1 <5.2.65.2.6
PYSEC-2025-105PyPIdjango>=4.2 <4.2.24
>=5.1 <5.1.12
>=5.2 <5.2.6
4.2.24, 5.1.12, 5.2.6

References

Check your stackJSON