diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-06-22 12:44:04 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-07-04 08:26:57 +0200 |
| commit | 0dc9c016fadb71a067e5a42be30164e3f96c0492 (patch) | |
| tree | ca672f9aad4b7a05802d27c5a22bede0ddd1c419 /docs | |
| parent | a2b88d7be6fc9b443794518d2f75fd2f3d9e677a (diff) | |
[4.0.x] Fixed CVE-2022-34265 -- Protected Trunc(kind)/Extract(lookup_name) against SQL injection.
Thanks Takuto Yoshikai (Aeye Security Lab) for the report.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/3.2.14.txt | 11 | ||||
| -rw-r--r-- | docs/releases/4.0.6.txt | 12 |
2 files changed, 20 insertions, 3 deletions
diff --git a/docs/releases/3.2.14.txt b/docs/releases/3.2.14.txt index bde1777376..f5719798c1 100644 --- a/docs/releases/3.2.14.txt +++ b/docs/releases/3.2.14.txt @@ -5,3 +5,14 @@ Django 3.2.14 release notes *July 4, 2022* Django 3.2.14 fixes a security issue with severity "high" in 3.2.13. + +CVE-2022-34265: Potential SQL injection via ``Trunc(kind)`` and ``Extract(lookup_name)`` arguments +================================================================================================== + +:class:`Trunc() <django.db.models.functions.Trunc>` and +:class:`Extract() <django.db.models.functions.Extract>` database functions were +subject to SQL injection if untrusted data was used as a +``kind``/``lookup_name`` value. + +Applications that constrain the lookup name and kind choice to a known safe +list are unaffected. diff --git a/docs/releases/4.0.6.txt b/docs/releases/4.0.6.txt index ee7979161e..d1b6fc6a43 100644 --- a/docs/releases/4.0.6.txt +++ b/docs/releases/4.0.6.txt @@ -6,7 +6,13 @@ Django 4.0.6 release notes Django 4.0.6 fixes a security issue with severity "high" in 4.0.5. -Bugfixes -======== +CVE-2022-34265: Potential SQL injection via ``Trunc(kind)`` and ``Extract(lookup_name)`` arguments +================================================================================================== -* ... +:class:`Trunc() <django.db.models.functions.Trunc>` and +:class:`Extract() <django.db.models.functions.Extract>` database functions were +subject to SQL injection if untrusted data was used as a +``kind``/``lookup_name`` value. + +Applications that constrain the lookup name and kind choice to a known safe +list are unaffected. |
