Vulnerabilities · 2020 · Djangoproject
CVE-2020-7471
Djangoproject Django vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Django. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- docs.djangoproject.com/en/3.0/releases/security/ · Vendor Advisory
- www.djangoproject.com/weblog/2020/feb/03/security-releases/ · Vendor Advisory
- github.com/django/django/commit/eb31d845323618d688ad429479c6dda973056136 · Patch
- www.openwall.com/lists/oss-security/2020/02/03/1 · Third Party Advisory
- www.openwall.com/lists/oss-security/2020/02/03/1 · Third Party Advisory
- groups.google.com/forum/#%21topic/django-announce/X45S86X5bZI
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4
- seclists.org/bugtraq/2020/Feb/30
- nvd.nist.gov/vuln/detail/CVE-2020-7471
- cve.org/CVERecord?id=CVE-2020-7471
More vulnerabilities in Djangoproject products
CVE-2026-1312CVE-2026-1287CVE-2026-1285CVE-2026-1207CVE-2025-64460CVE-2025-64459CVE-2025-64458CVE-2025-59682All 137
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.