CVE-2021-35042
9.8critical
SQL Injection in Django
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 44.4% (higher than 98% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-xpfp-f569-q3p2BIT-DJANGO-2021-35042PYSEC-2021-109
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django (PyPI) | from 3.2a1 before 3.2.5, from 3.0a1 before 3.1.13, from 3.1 before 3.1.13, from 3.2 before 3.2.5 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 3.1 before 3.1.13, from 3.2 before 3.2.5 | NVD |
| fedoraproject fedora | 34 | NVD |
| django (Bitnami) | from 3.1.0 before 3.1.13, from 3.2.0 before 3.2.5 | Bitnami Vulnerability Database |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
NVD (es)
Django versiones 3.1.x anteriores a 3.1.13 y versiones 3.2.x anteriores a 3.2.5, permiten la inyección SQL de la función QuerySet.order_by si el parámetro order_by es una entrada no fiable de un cliente de una aplicación web
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-35042 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xpfp-f569-q3p2 changed 2025-02-21 | CC-BY-4.0 |
| NVD | CVE-2021-35042 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-109 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2021-35042 changed 2026-09-08 | Apache-2.0 |