Feed
9.8CRITICAL
CVE-2020-7471SQL injection in Django
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 65.6% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 65.6%
- percentile 99%
- Fix
- Named by a source
- CVE published 3 Feb 2020 (approx.)
Reference
None of the "Needs attention" rules apply right now.
EPSS 65.6% (+50) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 1.11.28 / 2.2.10 / 3.0.3 or later on your release line.
- Patch: https://github.com/django/django/commit/eb31d845323618d688ad429479c6dda973056136
- Commit / pull request: https://github.com/django/django/commit/001b0634cd309e372edb6d7d95d083d02b8e37bd
- Commit / pull request: https://github.com/django/django/commit/505826b469b16ab36693360da9e11fd13213421b
- Commit / pull request: https://github.com/django/django/commit/c67a368c16e4680b324b4f385398d638db4d8147
Who should check
django (PyPI) pkg:pypi/django
- Affected< 1.11.28Fixed in1.11.28OSV (GHSA-hmr4-m2h5-33qx)
- Affected>= 2.0, < 2.2.10Fixed in2.2.10OSV (GHSA-hmr4-m2h5-33qx)
- Affected>= 3.0, < 3.0.3Fixed in3.0.3OSV (PYSEC-2020-35)
- Affected>= 1.11, < 1.11.28Fixed in1.11.28OSV (PYSEC-2020-35)
- Affected>= 2.2, < 2.2.10Fixed in2.2.10OSV (PYSEC-2020-35)
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-hmr4-m2h5-33qx)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-89
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 8 Jun 2026Exploitation more likely 9.4% → 15.4%
- 3 Jun 2026Exploitation more likely 9.4% → 13.9%
- 18 Nov 2025Exploitation more likely 7.8% → 12.5%
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2020-7471
- commit / pull requesthttps://github.com/django/django/commit/001b0634cd309e372edb6d7d95d083d02b8e37bd
- commit / pull requesthttps://github.com/django/django/commit/505826b469b16ab36693360da9e11fd13213421b
- commit / pull requesthttps://github.com/django/django/commit/c67a368c16e4680b324b4f385398d638db4d8147
- patchhttps://github.com/django/django/commit/eb31d845323618d688ad429479c6dda973056136
- otherhttps://www.openwall.com/lists/oss-security/2020/02/03/1
- otherhttps://www.djangoproject.com/weblog/2020/feb/03/security-releases
- advisoryhttps://www.debian.org/security/2020/dsa-4629
- otherhttps://usn.ubuntu.com/4264-1
- otherhttps://security.netapp.com/advisory/ntap-20200221-0006
- advisoryhttps://security.gentoo.org/glsa/202004-17
- otherhttps://seclists.org/bugtraq/2020/Feb/30
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ
- otherhttps://groups.google.com/forum/#!topic/django-announce/X45S86X5bZI
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2020-35.yaml
- otherhttps://github.com/django/django
- advisoryhttps://github.com/advisories/GHSA-hmr4-m2h5-33qx
- otherhttps://docs.djangoproject.com/en/3.0/releases/security
- otherhttp://www.openwall.com/lists/oss-security/2020/02/03/1
- otherhttps://docs.djangoproject.com/en/3.0/releases/security/
- otherhttps://www.djangoproject.com/weblog/2020/feb/03/security-releases/
- otherhttps://usn.ubuntu.com/4264-1/
- advisoryhttps://security.netapp.com/advisory/ntap-20200221-0006/
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-hmr4-m2h5-33qx (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2020-35 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 26 min ago · osv 25 min ago · nvd 86 min ago · epss 25 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2020-7471, GHSA-hmr4-m2h5-33qx, PYSEC-2020-35