9.8

CVE-2020-7471: djangoproject django SQL Injection

CVSS: 9.8v3.1CriticalModified
AliasesALPINE-CVE-2020-7471GHSA-hmr4-m2h5-33qxBIT-django-2020-7471
Published 03-02-2020Last modified 04-08-2024

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.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
65.58%
0%100%
Critical · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 9 · Related 9

Timeline

  1. 03-02-2020
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last 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

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

18-09-202618-10-2026
EPSS score
65.58%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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
Show all 31 references