Skip to content
Fencer Vulns
high 8.8

CVE-2020-9402 in the critical feed json

SQL injection in Django

published 2020-03-05 6 y ago modified 2026-09-08 2 mo ago also BIT-django-2020-9402 , EUVD-2020-0072 , GHSA-3gh2-xw74-jmcw , PYSEC-2020-345 , PYSEC-2020-36

cvss
8.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
22.5%
EPSS 22.5% chance of exploitation in 30 days, percentile 97%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi django 1.11.29, 2.2.11, 3.0.4
  • bitnami django 1.11.29, 2.2.11, 3.0.4
  • djangoproject django 1.11.29, 2.2.11, 3.0.4
  • python-django Debian 14, Debian 13, Debian 12 2:2.2.11-1

debian advisories DEBIAN-CVE-2020-9402

  • python-django Ubuntu 16.04 LTS 1.8.7-1ubuntu5.12
  • python-django Ubuntu 18.04 LTS 1:1.11.11-1ubuntu1.8

ubuntu advisories UBUNTU-CVE-2020-9402

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • tfm satellite capsule 6.9, satellite 6.9 6.1-4.el7sat
  • kobo satellite capsule 6.9, satellite 6.9 0.5.1-1.el7sat
  • pulp satellite capsule 6.9, satellite 6.9 2.21.5-2.el7sat
  • gofer satellite capsule 6.9, satellite 6.9 2.12.5-7.el7sat
  • future satellite capsule 6.9, satellite 6.9 0.16.0-11.el7sat
  • ostree satellite capsule 6.9, satellite 6.9 2017.1-2.atomic.el7
  • foreman satellite capsule 6.9, satellite 6.9 2.3.1.20-1.el7sat
  • katello satellite capsule 6.9, satellite 6.9 3.18.1-3.el7sat

red hat advisories RHSA-2021:1313

  • storm OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 1.2.3-3.6.1
  • ansible OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 2.9.14-3.15.1
  • grafana OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 6.7.4-4.12.1
  • ardana-mq OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1593618123.678c32b-3.26.1
  • ardana-nova OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1601298847.dd01585-3.42.1
  • crowbar-core OpenStack Cloud Crowbar 8 5.0+git.1600432272.b3ad722f0-3.44.1
  • python-kombu OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 4.1.0-3.7.1
  • ardana-cinder OpenStack Cloud 8, HPE Helion OpenStack 8 8.0+git.1596129856.263f430-3.43.1

suse advisories SUSE-SU-2020:3309-1SUSE-RU-2020:2161-1

  • python-Django5 openSUSE Tumbleweed 5.2.16-1.1
  • python-Django openSUSE Tumbleweed 5.2.16-1.1
  • python-Django4 openSUSE Tumbleweed 4.2.30-4.1
  • python-Django6 openSUSE Tumbleweed 6.0-1.1
  • python-Django4 openSUSE Tumbleweed 4.2.14-1.1
  • python-Django openSUSE Tumbleweed 3.2.7-2.3
  • python-Django openSUSE Tumbleweed 4.2.11-2.1

opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:11248-1openSUSE-SU-2026:11235-1openSUSE-SU-2026:10005-1openSUSE-SU-2024:14208-1openSUSE-SU-2024:11205-1

  • py-django Alpine 3.10, Alpine 3.9, Alpine 3.8 1.11.29-r0
  • py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 1.11.29-r0

alpine advisories ALPINE-CVE-2020-9402

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-django Arch Linux 3.0.4-1

arch linux advisories AVG-1111

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2020-9402 updated cvss 8.8

django: potential SQL injection via "tolerance" parameter in GIS functions and aggregates on Oracle

  • Red Hat Ceph Storage 2 python-django, python-django-bash-completion Red Hat Ceph Storage 3 python-django, python-django-bash-completion Red Hat OpenStack Platform 10 (Newton) python-django, python-django-bash-completion Red Hat OpenStack Platform 13 (Queens) python-django, python2-django, python-django-bash-completion Red Hat OpenStack Platform 15 (Stein) python-django, python3-django, python-django-bash-completion Red Hat OpenStack Platform 16 (Train) python-django, python3-django, python-django-bash-completion
    affected: workaround, no fix planned “There is no known mitigation for this issue, the flaw can only be resolved by applying updates.”
  • Red Hat Storage 3 python-django, python2-django, python-django-bash-completion Red Hat Update Infrastructure 3 for Cloud Providers python-django
    affected: workaround, no fix available “There is no known mitigation for this issue, the flaw can only be resolved by applying updates.”
  • Red Hat Satellite 6.9 pulp 2.21.5-2.el7sat, pulp-server 2.21.5-2.el7sat, pulp-selinux 2.21.5-2.el7sat, python-django 1.11.29-1.el7sat, python2-django 1.11.29-1.el7sat, pulp-maintenance 2.21.5-2.el7sat, +7 more Red Hat Satellite Capsule 6.9 pulp 2.21.5-2.el7sat, pulp-server 2.21.5-2.el7sat, pulp-selinux 2.21.5-2.el7sat, python-django 1.11.29-1.el7sat, python2-django 1.11.29-1.el7sat, pulp-maintenance 2.21.5-2.el7sat, +11 more
    fixed: vendor fix “There is no known mitigation for this issue, the flaw can only be resolved by applying updates.” RHSA-2021:1313
  • Red Hat Satellite 6.9 tfm 6.1-4.el7sat, kobo 0.5.1-1.el7sat, gofer 2.12.5-7.el7sat, libsolv 0.7.12-2.el7pc, receptor 0.6.3-1.el7ar, future 0.16.0-11.el7sat, +626 more Red Hat Satellite Capsule 6.9 tfm 6.1-4.el7sat, kobo 0.5.1-1.el7sat, gofer 2.12.5-7.el7sat, libsolv 0.7.12-2.el7pc, future 0.16.0-11.el7sat, katello 3.18.1-3.el7sat, +221 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

22.51% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
GitHub 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 6.5 AV:N/AC:L/Au:S/C:P/I:P/A:P
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi django
>=1.11, <1.11.29
>=2.2, <2.2.11
>=3.0, <3.0.4
1.11.29
2.2.11
3.0.4
bitnami django
>=1.11.0, <1.11.29
>=2.2.0, <2.2.11
>=3.0.0, <3.0.4
1.11.29
2.2.11
3.0.4

Classification

Weakness
  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.