VDB
CVE-2021-35042
CVE-2021-35042
PUBLISHED
CVSS 9.800000190734863 CRITICAL
SQL Injection in Django
Reported by mitre · Published July 2, 2021
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.
Risk scores
CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | Django | 3.2a1, 3.0a1 |
| alpine | py3-django | 0 |
| arch | python-django | 0 |
Timeline
- Jul 2, 2021 CVE Published
- Jul 3, 2021 EPSS Score (30 in total, the first dated here)
- Feb 21, 2025 CVE Updated
- Mar 9, 2026 Security Advisory
- Jul 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-35042
vulnetix vdb fixes CVE-2021-35042
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-35042/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- FEDORA-2021-78e501d62a vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2021-35042 advisory
- https://github.com/advisories/GHSA-xpfp-f569-q3p2 advisory
- https://github.com/django/django/commit/0bd57a879a0d54920bb9038a732645fb917040e9 patch
- https://github.com/django/django/commit/a34a5f724c5d5adb2109374ba3989ebb7b11f81f patch
- https://github.com/django/django/commit/dae83a24519d6f284c74414e0b81d64d9b5a0db4 patch
- https://docs.djangoproject.com/en/3.2/releases/security url
- https://github.com/django/django url
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-109.yaml advisory
- https://groups.google.com/forum/#!forum/django-announce url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y url
- https://security.netapp.com/advisory/ntap-20210805-0008 advisory
- https://www.djangoproject.com/weblog/2021/jul/01/security-releases url