# CVE-2020-7471

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 66% (FIRST, 05-12-2026)
- Next step: Check applicability: affected before 1.11.28, 2.2.10, 3.0.3 (CNA); fix release not confirmed
- Status: published
- Published: 2020-02-03 · Modified: 2024-08-04
- Aliases: ALPINE-CVE-2020-7471, GHSA-hmr4-m2h5-33qx, BIT-django-2020-7471, PYSEC-2020-35, UBUNTU-CVE-2020-7471, USN-4264-1, DEBIAN-CVE-2020-7471, DSA-4629-1
- Record: https://cvemate.com/vulnerability/CVE-2020-7471 · JSON: https://cvemate.com/vulnerability/CVE-2020-7471/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 65.575%, percentile 99.281%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine py-django (Alpine Linux): \< 1.11.28-r0
- alpine py3-django (Alpine Linux): \< 1.11.28-r0
- debian python-django (Debian): \< 2:2.2.10-1 \| \< 1:1.10.7-2+deb9u8 \| \< 1:1.11.28-1~deb10u1
- ubuntu python-django (Ubuntu): \< 1:1.11.11-1ubuntu1.7
- djangoproject django: ≥ 1.11, \< 1.11.28 \| ≥ 2.2, \< 2.2.10 \| ≥ 3.0, \< 3.0.3
- PyPI django (PyPI): \< 1.11.28 \| ≥ 2.0, \< 2.2.10 \| \< eb31d845323618d688ad429479c6dda973056136 \| ≥ 3.0, \< 3.0.3

## References (first 20 of 31)

- <https://groups.google.com/forum/#%21topic/django-announce/X45S86X5bZI>
- <https://docs.djangoproject.com/en/3.0/releases/security/>
- <https://www.openwall.com/lists/oss-security/2020/02/03/1>
- <https://www.djangoproject.com/weblog/2020/feb/03/security-releases/>
- <http://www.openwall.com/lists/oss-security/2020/02/03/1>
- <https://github.com/django/django/commit/eb31d845323618d688ad429479c6dda973056136>
- <https://usn.ubuntu.com/4264-1/>
- <https://seclists.org/bugtraq/2020/Feb/30>
- <https://www.debian.org/security/2020/dsa-4629>
- <https://security.netapp.com/advisory/ntap-20200221-0006/>
- <https://security.gentoo.org/glsa/202004-17>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/>
- <https://security.alpinelinux.org/vuln/CVE-2020-7471>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7471>
- <https://github.com/django/django/commit/001b0634cd309e372edb6d7d95d083d02b8e37bd>
- <https://github.com/django/django/commit/505826b469b16ab36693360da9e11fd13213421b>
- <https://github.com/django/django/commit/c67a368c16e4680b324b4f385398d638db4d8147>
- <https://www.djangoproject.com/weblog/2020/feb/03/security-releases>
- <https://usn.ubuntu.com/4264-1>
- <https://security.netapp.com/advisory/ntap-20200221-0006>

---

Data as of 2026-12-05T14:13:25.577Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
