First published: Fri Jul 02 2021(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Djangoproject Django | >=3.1<3.1.13 | |
Djangoproject Django | >=3.2<3.2.5 | |
Fedoraproject Fedora | =34 | |
pip/Django | >=3.0a1<3.1.13 | 3.1.13 |
pip/Django | >=3.2a1<3.2.5 | 3.2.5 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The vulnerability ID is CVE-2021-35042.
The severity of CVE-2021-35042 is critical with a CVSS score of 9.8.
Django versions 3.1.x before 3.1.13 and 3.2.x before 3.2.5 are affected by CVE-2021-35042.
CVE-2021-35042 allows SQL injection if untrusted input is used in the order_by parameter of QuerySet.order_by in a web application.
To fix CVE-2021-35042, upgrade Django to version 3.1.13 or 3.2.5, depending on the installed version.