django
Affected
- introduced
2.2, fixed2.2.28(ecosystem)
Fixed versions
2.2.28
Fix
- Fixed version
2.2.28pip install --upgrade django==2.2.28
Advisory
Also known as: BIT-django-2022-28346, CVE-2022-28346, PYSEC-2022-190
SQL Injection in Django
An issue was discovered in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. QuerySet.annotate(), aggregate(), and extra() methods are subject to SQL injection in column aliases via a crafted dictionary (with dictionary expansion) as the passed **kwargs.
Critical Basis: The source's own band: CRITICAL
2.2, fixed 2.2.28 (ecosystem)2.2.28
2.2.28pip install --upgrade django==2.2.283.2, fixed 3.2.13 (ecosystem)3.2.13
3.2.13pip install --upgrade django==3.2.134.0, fixed 4.0.4 (ecosystem)4.0.4
4.0.4pip install --upgrade django==4.0.4Fix 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