Patchwire CVEs, their patch status, and feeds to follow them

CVE-2025-59681

Fixed in a distro release EPSS <1%CVSS 7.1

An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(), QuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection in column aliases, when using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods (on MySQL and MariaDB).

Published 2025-10-01 · CVE record · OSV

Products: djangoproject django

Fixed upstream

EcosystemPackageFixed in
PyPIdjango4.2.25
PyPIdjango5.1.13
PyPIdjango5.2.7

Distro releases

ReleasePackageFixed in
Chainguardawx24.6.1-r17
Debian 11python-django2:2.2.28-1~deb11u9
Debian 12python-django3:3.2.25-0+deb12u1
Debian 13python-django3:4.2.27-0+deb13u1
Debian 14python-django3:4.2.25-1
SUSE Linux Enterprise Module for Package Hub 15 SP6python-Django4.2.11-150600.3.33.1
SUSE Linux Enterprise Module for Package Hub 15 SP7python-Django4.2.11-150600.3.33.1
Ubuntu 22.04 LTSpython-django2:3.2.12-2ubuntu1.22
Ubuntu 24.04 LTSpython-django3:4.2.11-1ubuntu1.11
Ubuntu 25.10python-django3:5.2.4-1ubuntu2
Ubuntu 26.04 LTSpython-django3:5.2.4-1ubuntu2
Ubuntu Pro 14.04 LTSpython-django1.6.11-0ubuntu1.3+esm8
Ubuntu Pro 16.04 LTSpython-django1.8.7-1ubuntu5.15+esm9
Ubuntu Pro 18.04 LTSpython-django1:1.11.11-1ubuntu1.21+esm12
Ubuntu Pro 20.04 LTSpython-django2:2.2.12-1ubuntu0.29+esm4
openSUSE Leap 15.6python-Django4.2.11-150600.3.33.1
openSUSE Leap 16.0python-Django5.2.4-bp160.3.1
openSUSE Tumbleweedpython-Django5.2.7-1.1
openSUSE Tumbleweedpython-Django44.2.25-1.1
openSUSE Tumbleweedpython-Django55.2.16-1.1
openSUSE Tumbleweedpython-Django66.0-1.1