Skip to content

Commit dae83a2

Browse files
committed
Forwardported release notes for CVE-2021-35042.
1 parent 62988af commit dae83a2

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

docs/releases/3.1.13.txt

+13-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,16 @@ Django 3.1.13 release notes
66

77
Django 3.1.13 fixes a security issues with severity "high" in 3.1.12.
88

9-
...
9+
CVE-2021-35042: Potential SQL injection via unsanitized ``QuerySet.order_by()`` input
10+
=====================================================================================
11+
12+
Unsanitized user input passed to ``QuerySet.order_by()`` could bypass intended
13+
column reference validation in path marked for deprecation resulting in a
14+
potential SQL injection even if a deprecation warning is emitted.
15+
16+
As a mitigation the strict column reference validation was restored for the
17+
duration of the deprecation period. This regression appeared in 3.1 as a side
18+
effect of fixing :ticket:`31426`.
19+
20+
The issue is not present in the main branch as the deprecated path has been
21+
removed.

docs/releases/3.2.5.txt

+16-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,22 @@ Django 3.2.5 release notes
44

55
*July 1, 2021*
66

7-
Django 3.2.5 fixes several bugs in 3.2.4. Also, the latest string translations
8-
from Transifex are incorporated.
7+
Django 3.2.5 fixes a security issue with severity "high" and several bugs in
8+
3.2.4. Also, the latest string translations from Transifex are incorporated.
9+
10+
CVE-2021-35042: Potential SQL injection via unsanitized ``QuerySet.order_by()`` input
11+
=====================================================================================
12+
13+
Unsanitized user input passed to ``QuerySet.order_by()`` could bypass intended
14+
column reference validation in path marked for deprecation resulting in a
15+
potential SQL injection even if a deprecation warning is emitted.
16+
17+
As a mitigation the strict column reference validation was restored for the
18+
duration of the deprecation period. This regression appeared in 3.1 as a side
19+
effect of fixing :ticket:`31426`.
20+
21+
The issue is not present in the main branch as the deprecated path has been
22+
removed.
923

1024
Bugfixes
1125
========

0 commit comments

Comments
 (0)