cve.bz

CVE-2020-9402 SQL Injection

8.8 highEPSS 24%Fix available

High (8.8). EPSS 24% estimated probability of exploitation activity in the next 30 days. Fixed in django 1.11.29, 2.2.11, 3.0.4.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
24% (unchanged from 24% a week ago; 23% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-9402 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-9402?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-9402?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-9402 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
djangoproject:djangofrom 1.11 before 1.11.29
djangoproject:djangofrom 2.2 before 2.2.11
djangoproject:djangofrom 3.0 before 3.0.4
debian:debian_linux9.0
debian:debian_linux10.0
fedoraproject:fedora31
fedoraproject:fedora32
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.10

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-3gh2-xw74-jmcwPyPIdjango>=1.11 <1.11.291.11.29
GHSA-3gh2-xw74-jmcwPyPIdjango>=2.2 <2.2.112.2.11
GHSA-3gh2-xw74-jmcwPyPIdjango>=3.0 <3.0.43.0.4
PYSEC-2020-36PyPIdjango>=1.11 <1.11.29
>=2.2 <2.2.11
>=3.0 <3.0.4
1.11.29, 2.2.11, 3.0.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9python-django1:1.10.7-2+deb9u17DLA-3024-1
Debian12, 13, 14python-django2:2.2.11-1DEBIAN-CVE-2020-9402
Ubuntu16.04:LTSpython-django1.8.7-1ubuntu5.12UBUNTU-CVE-2020-9402 USN-4296-1
Ubuntu18.04:LTSpython-django1:1.11.11-1ubuntu1.8UBUNTU-CVE-2020-9402 USN-4296-1
Red Hatsatellite:6.9::el7createrepo_c, createrepo_c-libs, python3-createrepo_c and 1 more0:0.17.1-1.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7keycloak-httpd-client-install, python2-keycloak-httpd-client-install0:1.2.2-2.el7satRHSA-2021:1313
Red Hatsatellite:6.9::el7libcomps, python3-libcomps, libcomps-debuginfo0:0.1.15-1.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7libsolv, python2-solv, python3-solv and 1 more0:0.7.12-2.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7pcp-mmvstatsd0:0.4-2.el7satRHSA-2021:1313
Red Hatsatellite:6.9::el7pulp-katello, tfm-rubygem-pulp_certguard_client0:1.0.3-1.el7satRHSA-2021:1313
Red Hatsatellite:6.9::el7pulpcore-selinux0:1.2.3-2.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7puppet-foreman_scap_client, tfm-rubygem-apipie-bindings0:0.4.0-1.el7satRHSA-2021:1313
Red Hatsatellite:6.9::el7python-aiofiles, python3-aiofiles, python-defusedxml and 1 more0:0.6.0-1.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7python-backoff, python3-backoff0:1.10.0-3.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7python-cffi, python3-cffi, python-cffi-debuginfo0:1.14.3-1.el7pcRHSA-2021:1313
Red Hatsatellite:6.9::el7python-django-lifecycle, python3-django-lifecycle0:0.8.0-1.el7pcRHSA-2021:1313
188 more for Red Hat in the JSON and on Red Hat's page.
SUSEHPE Helion OpenStack 8documentation-hpe-helion-openstack-user, documentation-hpe-helion-openstack-planning, documentation-hpe-helion-openstack-security and 3 more8.20201007-1.29.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8release-notes-hpe-helion-openstack8.20200922-3.23.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8venv-openstack-horizon-hpe12.0.5~dev3-14.32.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-ansible8.0+git.1596735237.54109b1-3.77.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-cinder8.0+git.1596129856.263f430-3.43.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-glance8.0+git.1593631779.76fa9b7-3.24.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-mq8.0+git.1593618123.678c32b-3.26.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-nova8.0+git.1601298847.dd01585-3.42.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8ardana-osconfig8.0+git.1595885113.93abcbc-3.49.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8python-Flask-Cors3.0.3-3.3.1SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8python-ardana-packager0.0.3-7.7.2SUSE-SU-2020:3309-1
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8venv-openstack-aodh5.1.1~dev7-12.28.1SUSE-SU-2020:3309-1
84 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Although the following products ship the flawed code, they do not use or support its functionality and therefore will not be updated:

* Red Hat OpenStack Platform

* Red Hat Update Infrastructure 3

* Red Hat Ceph Storage

The following products will be updated. However, because both products do not use the functionality, their Impact has been reduced to 'Low':

* Red Hat Gluster Storage

* Red Hat Satellite 6

Red Hat's mitigation

There is no known mitigation for this issue, the flaw can only be resolved by applying updates.

ProductPackageStateAdvisory
Red Hat Satellite 6.9 for RHEL 7pulp-0:2.21.5-2.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Satellite 6.9 for RHEL 7python-django-0:1.11.29-1.el7satFixed 2021-04-21RHSA-2021:1313
Red Hat Ceph Storage 2python-djangoWill not fix
Red Hat Ceph Storage 3python-djangoWill not fix
Red Hat OpenStack Platform 10 (Newton)python-djangoWill not fix
Red Hat OpenStack Platform 13 (Queens)python-djangoWill not fix
Red Hat OpenStack Platform 15 (Stein)python-djangoWill not fix
Red Hat OpenStack Platform 16 (Train)python-djangoWill not fix
Red Hat Storage 3python-djangoFix deferred
Red Hat Update Infrastructure 3 for Cloud Providerspython-djangoFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-9402.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON