{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2020-7471","id":"CVE-2020-7471","title":"SQL injection in Django","description":"Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection if untrusted data is used as a StringAgg delimiter (e.g., in Django applications that offer downloads of data as a series of rows with a user-specified column delimiter). By passing a suitably crafted delimiter to a contrib.postgres.aggregates.StringAgg instance, it was possible to break escaping and inject ma","descriptionLong":"Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection if untrusted data is used as a StringAgg delimiter (e.g., in Django applications that offer downloads of data as a series of rows with a user-specified column delimiter). By passing a suitably crafted delimiter to a contrib.postgres.aggregates.StringAgg instance, it was possible to break escaping and inject malicious SQL.","published":"2020-02-03T11:59:20.000Z","updated":"2026-11-16T10:45:18.868263659Z","reserved":"2020-01-21T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"critical","source":"GitHub"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","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.28",">=2.0 <2.2.10",">=3.0 <3.0.3",">=1.11 <1.11.28",">=2.2 <2.2.10"],"fixed":["1.11.28","2.2.10","3.0.3"],"advisory":"GHSA-hmr4-m2h5-33qx"}],"cwes":["CWE-89"],"aliases":["BIT-django-2020-7471","GHSA-hmr4-m2h5-33qx","PYSEC-2020-35"],"references":[{"url":"https://groups.google.com/forum/#%21topic/django-announce/X45S86X5bZI","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"https://docs.djangoproject.com/en/3.0/releases/security/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://www.openwall.com/lists/oss-security/2020/02/03/1","tags":["x_refsource_CONFIRM","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2020/feb/03/security-releases/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","article"]},{"url":"http://www.openwall.com/lists/oss-security/2020/02/03/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://github.com/django/django/commit/eb31d845323618d688ad429479c6dda973056136","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://usn.ubuntu.com/4264-1/","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"https://seclists.org/bugtraq/2020/Feb/30","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","web"]},{"url":"https://www.debian.org/security/2020/dsa-4629","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20200221-0006/","tags":["x_refsource_CONFIRM","x_transferred","advisory"]},{"url":"https://security.gentoo.org/glsa/202004-17","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","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://nvd.nist.gov/vuln/detail/CVE-2020-7471","tags":["advisory"]},{"url":"https://github.com/django/django/commit/001b0634cd309e372edb6d7d95d083d02b8e37bd","tags":["web"]},{"url":"https://github.com/django/django/commit/505826b469b16ab36693360da9e11fd13213421b","tags":["web"]},{"url":"https://github.com/django/django/commit/c67a368c16e4680b324b4f385398d638db4d8147","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2020/feb/03/security-releases","tags":["web"]},{"url":"https://usn.ubuntu.com/4264-1","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20200221-0006","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ","tags":["web"]},{"url":"https://groups.google.com/forum/#!topic/django-announce/X45S86X5bZI","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-35.yaml","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/advisories/GHSA-hmr4-m2h5-33qx","tags":["advisory"]},{"url":"https://docs.djangoproject.com/en/3.0/releases/security","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.65575,"epssPercentile":0.99279,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2020-7471","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7471","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2020-7471","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hmr4-m2h5-33qx","ok":true,"note":"GHSA-hmr4-m2h5-33qx"},{"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-7471","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":["CVSS 9.8 in a widely used technology","EPSS 66% with CVSS 9.8"],"attention":null}