django
Affected
- introduced
0, fixed4.2.24(ecosystem)
Fixed versions
4.2.24
Fix
- Fixed version
4.2.24pip install --upgrade django==4.2.24
Advisory
Also known as: BIT-django-2025-57833, CVE-2025-57833, PYSEC-2025-105
Django is subject to SQL injection through its column aliases
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().
High Basis: The source's own band: HIGH
0, fixed 4.2.24 (ecosystem)4.2.24
4.2.24pip install --upgrade django==4.2.245.0a1, fixed 5.1.12 (ecosystem)5.1.12
5.1.12pip install --upgrade django==5.1.125.2a1, fixed 5.2.6 (ecosystem)5.2.6
5.2.6pip install --upgrade django==5.2.6Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0