CVE-2020-9402: SQL Injection
A flaw was found in Django in a way that GIS functions and aggregates on Oracle were subject to SQL injection, using a suitably crafted tolerance.
Reference: https://www.djangoproject.com/weblog/2020/mar/04/security-releases/
Other sources
A SQL-injection flaw was found in python-django, where GIS functions and aggregates in Oracle did not correctly neutralize tolerance-parameter data. A remote attacker could use this flaw to submit crafted data to inject malicious SQL.
Django 1.11 before 1.11.29, 2.2 before 2.2.11, and 3.0 before 3.0.4 allows SQL Injection if untrusted data is used as a tolerance parameter in GIS functions and aggregates on Oracle. By passing a suitably crafted tolerance to GIS functions and aggregates on Oracle, it was possible to break escaping and inject malicious SQL.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/pulpto a version that resolves this vulnerability.Fixed in 0:2.21.5-2.el7 - Upgrade
Upgrade
redhat/python-djangoto a version that resolves this vulnerability.Fixed in 0:1.11.29-1.el7 - Upgrade
Upgrade
redhat/Djangoto a version that resolves this vulnerability.Fixed in 1.11.29 - Upgrade
Upgrade
redhat/Djangoto a version that resolves this vulnerability.Fixed in 2.2.11 - Upgrade
Upgrade
redhat/Djangoto a version that resolves this vulnerability.Fixed in 3.0.4 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 3.0.4 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 2.2.11 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 1.11.29 - Upgrade
Upgrade
debian/python-djangoto a version that resolves this vulnerability.Fixed in 2:2.2.28-1~deb11u2Fixed in 2:2.2.28-1~deb11u12Fixed in 3:3.2.25-0+deb12u2Fixed in 3:4.2.28-0+deb13u1Fixed in 3:5.2.15-2 - Upgrade
Upgrade
python-djangoto a version that resolves this vulnerability.Fixed in 1.11.29 - Upgrade
Upgrade
python-djangoto a version that resolves this vulnerability.Fixed in 2.2.11 - Upgrade
Upgrade
python-djangoto a version that resolves this vulnerability.Fixed in 3.0.4
Event History
Frequently Asked Questions
What is CVE-2020-9402?
CVE-2020-9402 is a SQL injection vulnerability found in python-django.
How does CVE-2020-9402 affect Django?
CVE-2020-9402 allows SQL injection if untrusted data is used as a tolerance parameter in GIS functions and aggregates on Oracle.
What is the severity of CVE-2020-9402?
The severity of CVE-2020-9402 is high, with a CVSS score of 8.8.
How can I fix CVE-2020-9402?
To fix CVE-2020-9402, upgrade Django to version 1.11.29, 2.2.11, or 3.0.4.
Where can I find more information about CVE-2020-9402?
You can find more information about CVE-2020-9402 at CVE.org, NIST National Vulnerability Database, Django's official website, Bugzilla, and Red Hat's errata page.