{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-9402","id":"CVE-2020-9402","title":"SQL injection in Django","description":"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.","descriptionLong":"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":"2020-03-05T14:49:57.000Z","updated":"2026-11-16T10:45:18.869023906Z","reserved":"2020-02-25T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.11 <1.11.29",">=2.2 <2.2.11",">=3.0 <3.0.4"],"fixed":["1.11.29","2.2.11","3.0.4"],"advisory":"GHSA-3gh2-xw74-jmcw"}],"cwes":["CWE-89"],"aliases":["BIT-django-2020-9402","GHSA-3gh2-xw74-jmcw","PYSEC-2020-36"],"references":[{"url":"https://docs.djangoproject.com/en/3.0/releases/security/","tags":["x_refsource_MISC","x_transferred","Patch","Release Notes","Vendor Advisory","fix"]},{"url":"https://groups.google.com/forum/#%21topic/django-announce/fLUh_pOaKrY","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://www.djangoproject.com/weblog/2020/mar/04/security-releases/","tags":["x_refsource_CONFIRM","x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://usn.ubuntu.com/4296-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20200327-0004/","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"https://security.gentoo.org/glsa/202004-17","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.debian.org/security/2020/dsa-4705","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY/","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/05/msg00035.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-9402","tags":["advisory"]},{"url":"https://github.com/django/django/commit/6695d29b1c1ce979725816295a26ecc64ae0e927","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2020/mar/04/security-releases","tags":["web"]},{"url":"https://usn.ubuntu.com/4296-1","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20200327-0004","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UZMN2NKAGTFE3YKMNM2JVJG7R2W7LLHY","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ","tags":["web"]},{"url":"https://groups.google.com/forum/#!topic/django-announce/fLUh_pOaKrY","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-36.yaml","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-345.yaml","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/advisories/GHSA-3gh2-xw74-jmcw","tags":["advisory"]},{"url":"https://docs.djangoproject.com/en/3.0/releases/security","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.23951,"epssPercentile":0.97876,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-9402","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-9402","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-9402","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3gh2-xw74-jmcw","ok":true,"note":"GHSA-3gh2-xw74-jmcw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2020-9402","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["django"],"critical":["EPSS 24% with CVSS 8.8"],"attention":null}