python3-django: fix CVE-2025-64459

The methods QuerySet.filter(), QuerySet.exclude(), and QuerySet.get(), and the
class Q() were subject to SQL injection when using a suitably crafted
dictionary, with dictionary expansion, as the _connector argument.

Reference:
https://nvd.nist.gov/vuln/detail/CVE-2025-64459
https://shivasurya.me/security/django/2025/11/07/django-sql-injection-CVE-2025-64459.html

Upstream-patch:
https://github.com/django/django/commit/98e642c69181c942d60a10ca0085d48c6b3068bb

Signed-off-by: Haixiao Yan <haixiao.yan.cn@windriver.com>
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Haixiao Yan
2025-12-18 10:43:31 +08:00
committed by Gyorgy Sarvari
parent 8611f92c20
commit 0d50915759
2 changed files with 61 additions and 0 deletions
@@ -31,6 +31,7 @@ SRC_URI += "file://CVE-2023-31047.patch \
file://CVE-2024-39329.patch \
file://CVE-2024-39330.patch \
file://CVE-2025-32873.patch \
file://CVE-2025-64459.patch \
"
SRC_URI[sha256sum] = "0200b657afbf1bc08003845ddda053c7641b9b24951e52acd51f6abda33a7413"