CVE-2020-9402: SQL Injection

Published Mar 4, 2020
·
Updated

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

20 affected componentsFixes available
redhat/pulp<0:2.21.5-2.el7
0:2.21.5-2.el7
redhat/python-django<0:1.11.29-1.el7
0:1.11.29-1.el7
redhat/Django<1.11.29
1.11.29
redhat/Django<2.2.11
2.2.11
redhat/Django<3.0.4
3.0.4
pip/Django>=3.0<3.0.4
3.0.4
pip/Django>=2.2<2.2.11
2.2.11
pip/Django>=1.11<1.11.29
1.11.29
djangoproject Django>=1.11<1.11.29
djangoproject Django>=2.2<2.2.11
djangoproject Django>=3.0<3.0.4
Debian Debian Linux=9.0
Debian Debian Linux=10.0
Fedoraproject Fedora=31
Fedoraproject Fedora=32
NetApp Steelstore Cloud Integrated Storage
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.10
debian/python-django
2:2.2.28-1~deb11u22:2.2.28-1~deb11u123:3.2.25-0+deb12u23:4.2.28-0+deb13u13:5.2.15-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/pulp to a version that resolves this vulnerability.

    Fixed in 0:2.21.5-2.el7
  2. Upgrade

    Upgrade redhat/python-django to a version that resolves this vulnerability.

    Fixed in 0:1.11.29-1.el7
  3. Upgrade

    Upgrade redhat/Django to a version that resolves this vulnerability.

    Fixed in 1.11.29
  4. Upgrade

    Upgrade redhat/Django to a version that resolves this vulnerability.

    Fixed in 2.2.11
  5. Upgrade

    Upgrade redhat/Django to a version that resolves this vulnerability.

    Fixed in 3.0.4
  6. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 3.0.4
  7. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 2.2.11
  8. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 1.11.29
  9. Upgrade

    Upgrade debian/python-django to 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
  10. Upgrade

    Upgrade python-django to a version that resolves this vulnerability.

    Fixed in 1.11.29
  11. Upgrade

    Upgrade python-django to a version that resolves this vulnerability.

    Fixed in 2.2.11
  12. Upgrade

    Upgrade python-django to a version that resolves this vulnerability.

    Fixed in 3.0.4

Event History

Mar 4, 2020
CVE Published
12:00 AM
Mar 5, 2020
CVE Published
via MITRE·02:49 PM
Data Sourced
via MITRE·02:49 PM
Description
Data Sourced
via NVD·03:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 5, 2020
Advisory Published
via GitHub·02:52 PM
Feb 24, 2026
Data Sourced
via Ubuntu·01:07 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·01:08 AM
Description
Jun 29, 2026
Data Sourced
via Debian·03:45 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2020-9402?

CVE-2020-9402 is a SQL injection vulnerability found in python-django.

2

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.

3

What is the severity of CVE-2020-9402?

The severity of CVE-2020-9402 is high, with a CVSS score of 8.8.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203