CVE-2020-9402
HIGH 8.8CVSS 3.1SQL injection in Django
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.
- Published
- 5 Mar 2020
- Last modified
- 9 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- BIT-django-2020-9402GHSA-3gh2-xw74-jmcwPYSEC-2020-345PYSEC-2020-36
- Sources
- NVDJSONOSV GHSA-3gh2-xw74-jmcwJSONOSV PYSEC-2020-345JSONOSV PYSEC-2020-36JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 1.11, < 1.11.29 | 1.11.29 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 2.2, < 2.2.11 | 2.2.11 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 3.0, < 3.0.4 | 3.0.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* |
= 31 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* |
= 32 | |
| NVD | netapp | steelstore_cloud_integrated_storagecpe:2.3:a:netapp:steelstore_cloud_integrated_storage:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:* |
= 19.10 | |
| OSV | PyPI | django | >= 1.11, < 1.11.29 | 1.11.29 |
| OSV | PyPI | django | >= 2.2, < 2.2.11 | 2.2.11 |
| OSV | PyPI | django | >= 3.0, < 3.0.4 | 3.0.4 |
| OSV | 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 |
References
- https://docs.djangoproject.com/en/3.0/releases/security/ · Patch, Release Notes, Vendor Advisory, WEB, FIX
- https://groups.google.com/forum/#%21topic/django-announce/fLUh_pOaKrY · WEB
- https://lists.debian.org/debian-lts-announce/2022/05/msg00035.html · Mailing List, Third Party Advisory, WEB, ADVISORY
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY/ · WEB
- https://security.gentoo.org/glsa/202004-17 · Third Party Advisory, WEB, ADVISORY
- https://security.netapp.com/advisory/ntap-20200327-0004/ · Third Party Advisory, WEB, ADVISORY
- https://usn.ubuntu.com/4296-1/ · Third Party Advisory, WEB, ADVISORY
- https://www.debian.org/security/2020/dsa-4705 · Third Party Advisory, WEB, ADVISORY
- https://www.djangoproject.com/weblog/2020/mar/04/security-releases/ · Patch, Vendor Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2020-9402 · ADVISORY
- https://github.com/django/django/commit/6695d29b1c1ce979725816295a26ecc64ae0e927 · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ · WEB
- https://groups.google.com/forum/#!topic/django-announce/fLUh_pOaKrY · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-36.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-345.yaml · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/advisories/GHSA-3gh2-xw74-jmcw · ADVISORY
History
- 25 Nov 2026 20:31 UTC · NVD: first stored (published 5 Mar 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Mar 2020)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Mar 2020)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Jun 2020)