CVE-2021-35042
JSON

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 packageVersionsReported by
Unspecified productn/aCVE 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.5GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 3.1 before 3.1.13, from 3.2 before 3.2.5NVD
fedoraproject fedora34NVD
django (Bitnami)from 3.1.0 before 3.1.13, from 3.2.0 before 3.2.5Bitnami Vulnerability Database

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical 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

https://groups.google.com/forum/#%21forum/django-announceweb
https://docs.djangoproject.com/en/3.2/releases/security/advisory, patch, vendor-advisory, web
https://www.openwall.com/lists/oss-security/2021/07/02/2advisory, mailing-list, patch, third-party-advisory, web
https://www.djangoproject.com/weblog/2021/jul/01/security-releases/advisory, article, patch, vendor-advisory
https://security.netapp.com/advisory/ntap-20210805-0008/advisory, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-35042advisory, web
https://github.com/django/django/commit/0bd57a879a0d54920bb9038a732645fb917040e9web
https://github.com/django/django/commit/a34a5f724c5d5adb2109374ba3989ebb7b11f81fweb
https://github.com/django/django/commit/dae83a24519d6f284c74414e0b81d64d9b5a0db4web
https://docs.djangoproject.com/en/3.2/releases/securityweb
https://github.com/advisories/GHSA-xpfp-f569-q3p2advisory

Sources

SourceRecordLicence
CVE ListCVE-2021-35042 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-xpfp-f569-q3p2 changed 2025-02-21CC-BY-4.0
NVDCVE-2021-35042 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-109 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2021-35042 changed 2026-09-08Apache-2.0