CVE-2020-7471Djangoproject Django
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 80
- CVSS 3.1
- 9.8
- EPSS
- 65.6% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- Feb 3, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-89
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
< 1.11.28 |
1.11.28 |
pip install "django>=1.11.28" |
| PyPI | django |
≥ 2.0 < 2.2.10 |
2.2.10 |
pip install "django>=2.2.10" |
| PyPI | django |
≥ 3.0 < 3.0.3 |
3.0.3 |
pip install "django>=3.0.3" |
| PyPI | django |
≥ 1.11 < 1.11.28 |
1.11.28 |
pip install "django>=1.11.28" |
| PyPI | django |
≥ 2.2 < 2.2.10 |
2.2.10 |
pip install "django>=2.2.10" |
| PyPI | django |
≥ 3.0 < 3.0.3 |
3.0.3 |
pip install "django>=3.0.3" |
Per OSV / GitHub Advisories (GHSA-hmr4-m2h5-33qx, PYSEC-2020-35). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 1.11 < 1.11.28 |
| djangoproject | django | ≥ 2.2 < 2.2.10 |
| djangoproject | django | ≥ 3.0 < 3.0.3 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- docs.djangoproject.com Vendor Advisory
- github.com Patch Third Party Advisory
- groups.google.com
- lists.fedoraproject.org
- seclists.org
- security.gentoo.org
- security.netapp.com
- usn.ubuntu.com
- www.debian.org
- www.djangoproject.com Vendor Advisory
- www.openwall.com Mailing List Third Party Advisory