Ubuntu CVE Tracker
UBUNTU-CVE-2025-57833
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:20.04:LTS | python-django | All versions before 2:2.2.12-1ubuntu0.29+esm3 (fixed in 2:2.2.12-1ubuntu0.29+esm3) |
| Ubuntu:22.04:LTS | python-django | All versions before 2:3.2.12-2ubuntu1.21 (fixed in 2:3.2.12-2ubuntu1.21) |
| Ubuntu:24.04:LTS | python-django | All versions before 3:4.2.11-1ubuntu1.10 (fixed in 3:4.2.11-1ubuntu1.10) |