VDB

CVE-2020-9402

CVE-2020-9402 PUBLISHED CVSS 6.5 MEDIUM

SQL injection in Django

Reported by mitre · Published March 5, 2020

django is fixed in 3.0.4, 2.2.11 and 1.11.29 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
djangoPyPI3.0.4, 2.2.11, 1.11.29
djangoBitnami3.0.4, 2.2.11, 1.11.29
djangodjangoproject3.0.4, 2.2.11, 1.11.29
djangoBitnami3.0.4, 2.2.11, 1.11.29

Risk scores

CVSS 2.0
6.5

Affected products

VendorProductVersions
n/an/an/a
PyPIDjango1.11.0, 3.0.0, 2.2.0
n/an/a*
alpinepy3-django0
archpython-django0
alpinepy-django0

Timeline

  • Mar 4, 2020 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Sep 8, 2025 CVE Updated
  • Mar 7, 2026 Distribution Patch (2 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (4 in total, the first dated here)
  • Aug 28, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2020-9402
vulnetix vdb fixes CVE-2020-9402

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-9402/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›