mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[6.0.x] Fixed CVE-2025-59681 -- Protected QuerySet.annotate(), alias(), aggregate(), and extra() against SQL injection in column aliases on MySQL/MariaDB.
Thanks sw0rd1ight for the report. Follow up to93cae5cb2f. Backport of41b43c74bdfrom main.
This commit is contained in:
committed by
Jacob Walls
parent
ee0610673b
commit
4ceaaee7e0
@@ -7,4 +7,11 @@ Django 4.2.25 release notes
|
||||
Django 4.2.25 fixes one security issue with severity "high" and one security
|
||||
issue with severity "low" in 4.2.24.
|
||||
|
||||
...
|
||||
CVE-2025-59681: Potential SQL injection in ``QuerySet.annotate()``, ``alias()``, ``aggregate()``, and ``extra()`` on MySQL and MariaDB
|
||||
======================================================================================================================================
|
||||
|
||||
:meth:`.QuerySet.annotate`, :meth:`~.QuerySet.alias`,
|
||||
:meth:`~.QuerySet.aggregate`, and :meth:`~.QuerySet.extra` methods were subject
|
||||
to SQL injection in column aliases, using a suitably crafted dictionary, with
|
||||
dictionary expansion, as the ``**kwargs`` passed to these methods (follow up to
|
||||
:cve:`2022-28346`).
|
||||
|
||||
@@ -7,4 +7,11 @@ Django 5.1.13 release notes
|
||||
Django 5.1.13 fixes one security issue with severity "high" and one security
|
||||
issue with severity "low" in 5.1.12.
|
||||
|
||||
...
|
||||
CVE-2025-59681: Potential SQL injection in ``QuerySet.annotate()``, ``alias()``, ``aggregate()``, and ``extra()`` on MySQL and MariaDB
|
||||
======================================================================================================================================
|
||||
|
||||
:meth:`.QuerySet.annotate`, :meth:`~.QuerySet.alias`,
|
||||
:meth:`~.QuerySet.aggregate`, and :meth:`~.QuerySet.extra` methods were subject
|
||||
to SQL injection in column aliases, using a suitably crafted dictionary, with
|
||||
dictionary expansion, as the ``**kwargs`` passed to these methods (follow up to
|
||||
:cve:`2022-28346`).
|
||||
|
||||
@@ -8,6 +8,15 @@ Django 5.2.7 fixes one security issue with severity "high", one security issue
|
||||
with severity "low", and one bug in 5.2.6. Also, the latest string translations
|
||||
from Transifex are incorporated.
|
||||
|
||||
CVE-2025-59681: Potential SQL injection in ``QuerySet.annotate()``, ``alias()``, ``aggregate()``, and ``extra()`` on MySQL and MariaDB
|
||||
======================================================================================================================================
|
||||
|
||||
:meth:`.QuerySet.annotate`, :meth:`~.QuerySet.alias`,
|
||||
:meth:`~.QuerySet.aggregate`, and :meth:`~.QuerySet.extra` methods were subject
|
||||
to SQL injection in column aliases, using a suitably crafted dictionary, with
|
||||
dictionary expansion, as the ``**kwargs`` passed to these methods (follow up to
|
||||
:cve:`2022-28346`).
|
||||
|
||||
Bugfixes
|
||||
========
|
||||
|
||||
|
||||
Reference in New Issue
Block a user