Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2020-9402

CVE-2020-9402: SQL injection in Django

June 5, 2020 (updated September 20, 2024)

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.

References

  • docs.djangoproject.com/en/3.0/releases/security
  • github.com/advisories/GHSA-3gh2-xw74-jmcw
  • github.com/django/django
  • github.com/django/django/commit/6695d29b1c1ce979725816295a26ecc64ae0e927
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-36.yaml
  • groups.google.com/forum/
  • lists.debian.org/debian-lts-announce/2022/05/msg00035.html
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY
  • nvd.nist.gov/vuln/detail/CVE-2020-9402
  • security.gentoo.org/glsa/202004-17
  • security.netapp.com/advisory/ntap-20200327-0004
  • usn.ubuntu.com/4296-1
  • www.debian.org/security/2020/dsa-4705
  • www.djangoproject.com/weblog/2020/mar/04/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2020-9402 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.11 before 1.11.29, all versions starting from 2.2 before 2.2.11, all versions starting from 3.0 before 3.0.4

Fixed versions

  • 1.11.29
  • 2.2.11
  • 3.0.4

Solution

Upgrade to versions 1.11.29, 2.2.11, 3.0.4 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/Django/CVE-2020-9402.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:00 +0000.