Vulnerability · Published Feb 3, 2020 · Assigned by mitre

CVE-2020-7471

Critical 9.8

In plain English

A critical-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 65.6% (higher than 99.3% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)65.6%top 0.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-django1.11.28-r0ALPINE-CVE-2020-7471
Alpine:v3.21py3-django1.11.28-r0ALPINE-CVE-2020-7471
Alpine:v3.22py3-django1.11.28-r0ALPINE-CVE-2020-7471
Alpine:v3.23py3-django1.11.28-r0ALPINE-CVE-2020-7471
Alpine:v3.24py3-django1.11.28-r0ALPINE-CVE-2020-7471
Debian:12python-django2:2.2.10-1DEBIAN-CVE-2020-7471
Debian:13python-django2:2.2.10-1DEBIAN-CVE-2020-7471
Debian:14python-django2:2.2.10-1DEBIAN-CVE-2020-7471
PyPIdjango1.11.28, 2.2.10, 3.0.3PYSEC-2020-35
PyPIdjango3.0.3GHSA-hmr4-m2h5-33qx
PyPIdjango2.2.10GHSA-hmr4-m2h5-33qx
PyPIdjango1.11.28GHSA-hmr4-m2h5-33qx

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References