CVE-2020-7471: djangoproject django SQL Injection
Vulnerability summary
CVE-2020-7471 is a critical (CVSS 9.8) SQL Injection vulnerability in djangoproject django. EPSS estimates a 65.58% chance of exploitation in the next 30 days, higher than 99.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 9 · Related 9Timeline
- 03-02-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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 malicious SQL.
CVSS metrics
7 scores · 5 sources · 3 versions- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
65.58%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
0.00 pp
From 65.58% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Alpine2 products
- py-django< 1.11.28-r0
- py3-django< 1.11.28-r0
Debian1 product
- python-django< 2:2.2.10-1 | < 1:1.10.7-2+deb9u8 | < 1:1.11.28-1~deb10u1
Djangoproject1 product
- django≥ 1.11, < 1.11.28 | ≥ 2.2, < 2.2.10 | ≥ 3.0, < 3.0.3
PyPI1 product
- django< 1.11.28 | ≥ 2.0, < 2.2.10 | < eb31d845323618d688ad429479c6dda973056136 | ≥ 3.0, < 3.0.3
Ubuntu1 product
- python-django< 1:1.11.11-1ubuntu1.7
5 vendors · 6 products
References
31 links- groups.google.com/forum/X Refsource CONFIRM
- www.openwall.com/lists/oss-security/2020/02/03/1X Refsource CONFIRMWEBREPORTMailing ListThird Party Advisory
- www.djangoproject.com/weblog/2020/feb/03/security-releases/X Refsource CONFIRMARTICLEVendor Advisory
- www.openwall.com/lists/oss-security/2020/02/03/1Mailing ListX Refsource MLISTWEBThird Party Advisory
- github.com/django/django/commit/eb31d845323618d688ad429479c6dda973056136X Refsource CONFIRMWEBFIXPatchThird Party Advisory
Show all 31 references
- github.com/django/djangoPACKAGE