{"id":"CVE-2020-9402","aliases":["GHSA-3gh2-xw74-jmcw","BIT-django-2020-9402","PYSEC-2020-36"],"title":"SQL injection in Django","summary":"SQL injection in Django","severity":"high","cvss":8.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","vendor":"django","product":"django","ecosystem":"pip","affected":["django >= 1.11, < 1.11.29","django >= 2.2, < 2.2.11","django >= 3.0, < 3.0.4"],"patched":["django 1.11.29","django 2.2.11","django 3.0.4"],"published":"2020-06-05","updated":"2026-07-09","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-3gh2-xw74-jmcw","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-9402"},{"url":"https://github.com/django/django/commit/6695d29b1c1ce979725816295a26ecc64ae0e927"},{"url":"https://www.djangoproject.com/weblog/2020/mar/04/security-releases"},{"url":"https://www.debian.org/security/2020/dsa-4705"},{"url":"https://usn.ubuntu.com/4296-1"},{"url":"https://security.netapp.com/advisory/ntap-20200327-0004"},{"url":"https://security.gentoo.org/glsa/202004-17"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ"},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00035.html"},{"url":"https://groups.google.com/forum/#%21topic/django-announce/fLUh_pOaKrY"},{"url":"https://groups.google.com/forum/#!topic/django-announce/fLUh_pOaKrY"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-36.yaml"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-345.yaml"},{"url":"https://github.com/django/django"},{"url":"https://github.com/advisories/GHSA-3gh2-xw74-jmcw"},{"url":"https://docs.djangoproject.com/en/3.0/releases/security"}],"tags":["osv","pip"],"epss":0.22513,"epssPercentile":0.97651,"ingestedAt":"2026-07-09T18:56:35.164Z","slug":"CVE-2020-9402","body":"## Overview\n\nDjango 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.\n\n## Affected packages\n\n- `django >= 1.11, < 1.11.29`\n- `django >= 2.2, < 2.2.11`\n- `django >= 3.0, < 3.0.4`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `django 1.11.29`\n- `django 2.2.11`\n- `django 3.0.4`","depth":"twilight","depthScore":53,"depthScoreParts":{"impact":48.4,"likelihood":4.5,"exploitation":0,"ransomware":0},"changes":[]}