Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a web application.
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Link | Tags |
---|---|
https://groups.google.com/forum/#%21forum/django-announce | |
https://docs.djangoproject.com/en/3.2/releases/security/ | vendor advisory patch |
https://www.openwall.com/lists/oss-security/2021/07/02/2 | third party advisory patch mailing list |
https://www.djangoproject.com/weblog/2021/jul/01/security-releases/ | vendor advisory patch |
https://security.netapp.com/advisory/ntap-20210805-0008/ | third party advisory |
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/ | vendor advisory |