CVE-2025-57833

NameCVE-2025-57833
DescriptionAn 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().
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4301-1
Debian Bugs1113865

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-django (PTS)bullseye2:2.2.28-1~deb11u2vulnerable
bullseye (security)2:2.2.28-1~deb11u8fixed
bookworm, bookworm (security)3:3.2.19-1+deb12u1vulnerable
trixie3:4.2.23-1vulnerable
forky, sid3:4.2.24-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-djangosourcebullseye2:2.2.28-1~deb11u8DLA-4301-1
python-djangosource(unstable)3:4.2.24-11113865

Notes

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)

Search for package or bug name: Reporting problems