ArchLinux: 202107-11: python-django: insufficient validation
Summary
A security issue has been found in Django before version 3.2.5. Unsanitized user input passed to QuerySet.order_by() could bypass intended column reference validation in path marked for deprecation resulting in a potential SQL injection even if a deprecation warning is emitted. As a mitigation the strict column reference validation was restored for the duration of the deprecation period.
Resolution
Upgrade to 3.2.5-1.
# pacman -Syu "python-django>=3.2.5-1"
The problem has been fixed upstream in version 3.2.5.
References
https://docs.djangoproject.com/en/3.2/releases/3.2.5/#cve-2021-35042-potential-sql-injection-via-unsanitized-queryset-order-by-input https://github.com/django/django/commit/a34a5f724c5d5adb2109374ba3989ebb7b11f81f https://security.archlinux.org/CVE-2021-35042
Workaround
None.