Debian Security Tracker
DEBIAN-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 |
|---|---|---|
| Debian:12 | python-django | All versions before 3:3.2.25-0+deb12u1 (fixed in 3:3.2.25-0+deb12u1) |
| Debian:13 | python-django | All versions before 3:4.2.27-0+deb13u1 (fixed in 3:4.2.27-0+deb13u1) |
| Debian:14 | python-django | All versions before 3:4.2.24-1 (fixed in 3:4.2.24-1) |