CVE-2021-35042
Aliases:GHSA-xpfp-f569-q3p2BIT-django-2021-35042PYSEC-2021-109
Advisory lineage Upstream: 0 Downstream: 5
Modified
Published: 02 Jul 2021, 09:54
Last modified:04 Aug 2024, 00:33
Vulnerability Summary
Overall Risk (default)
high
70/100 CVSS Score
9.8 CRITICAL
v3.1 (nvd)
EPSS Score
90.9% CRITICAL
91% probability +3.47%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
02 Jul 2021, 09:54
Published
Vulnerability first disclosed
04 Aug 2024, 00:33
Last Modified
Vulnerability information updated
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.
CVSS Metrics
- v4.0•CRITICAL•Score: 9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- v3.1•CRITICAL•Score: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- v2.0•HIGH•Score: 7.5AV:N/AC:L/Au:N/C:P/I:P/A:P
EPSS Trends
Current EPSS score: 90.90%• Percentile: 100%
Techniques & Countermeasures
- CWE-89•Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
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.
Affected Systems
- djangoproject•django
≥ 3.1, < 3.1.13 | ≥ 3.2, < 3.2.5
- fedoraproject•fedora
34
- PyPI•django
≥ 3.2a1, < 3.2.5 | ≥ 3.0a1, < 3.1.13 | ≥ 3.2, < 3.2.5
References (18)
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/3.2/releases/security/
- https://www.openwall.com/lists/oss-security/2021/07/02/2
- https://www.djangoproject.com/weblog/2021/jul/01/security-releases/
- https://security.netapp.com/advisory/ntap-20210805-0008/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/
- https://nvd.nist.gov/vuln/detail/CVE-2021-35042
- https://github.com/django/django/commit/0bd57a879a0d54920bb9038a732645fb917040e9
- https://github.com/django/django/commit/a34a5f724c5d5adb2109374ba3989ebb7b11f81f
- https://github.com/django/django/commit/dae83a24519d6f284c74414e0b81d64d9b5a0db4
- https://docs.djangoproject.com/en/3.2/releases/security
- https://github.com/advisories/GHSA-xpfp-f569-q3p2
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-109.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y
- https://security.netapp.com/advisory/ntap-20210805-0008
- https://www.djangoproject.com/weblog/2021/jul/01/security-releases