Name | 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(). |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-4301-1 |
Debian Bugs | 1113865 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
python-django (PTS) | bullseye | 2:2.2.28-1~deb11u2 | vulnerable |
bullseye (security) | 2:2.2.28-1~deb11u8 | fixed | |
bookworm, bookworm (security) | 3:3.2.19-1+deb12u1 | vulnerable | |
trixie | 3:4.2.23-1 | vulnerable | |
forky, sid | 3:4.2.24-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
python-django | source | bullseye | 2:2.2.28-1~deb11u8 | DLA-4301-1 | ||
python-django | source | (unstable) | 3:4.2.24-1 | 1113865 |
https://www.djangoproject.com/weblog/2025/sep/03/security-releases/
https://github.com/django/django/commit/31334e6965ad136a5e369993b01721499c5d1a92 (4.2.24)
https://github.com/django/django/commit/4c044fcc866ec226f612c475950b690b0139d243 (5.2.6)