Stackurity Start free trial

CVEs / CVE-2025-57833

CVE-2025-57833: djangoproject Django vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2025-57833

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

The CVE record, via NVD · published 3 Sep 2025 · NVD status: Modified

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
djangoproject Djangofrom 4.2, before 4.2.244.2.24
djangoproject Djangofrom 5.1, before 5.1.125.1.12
djangoproject Djangofrom 5.2, before 5.2.65.2.6
As stated by OSV
ProductAffectedFixed in
django (PyPI)before 4.2.244.2.24
django (PyPI)from 5.0a1, before 5.1.125.1.12
django (PyPI)from 5.2a1, before 5.2.65.2.6

Package versions from GHSA-6w2r-r2m5-xq5w.

Exploitation

Not in the CISA Known Exploited Vulnerabilities catalog as of 3 Nov 2026.

Severity

CVSS 3.18.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by NVD
WeaknessCWE-89

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.