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.
Published: 2020-02-03
Score: 9.8 Critical
EPSS: 9.4% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-4629-1 python-django security update
EUVD EUVD EUVD-2020-0071 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.
Github GHSA Github GHSA GHSA-hmr4-m2h5-33qx SQL injection in Django
Ubuntu USN Ubuntu USN USN-4264-1 Django vulnerability
History

Sat, 12 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.08683}

epss

{'score': 0.07771}


Subscriptions

Djangoproject Django
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2024-08-04T09:33:19.635Z

Reserved: 2020-01-21T00:00:00.000Z

Link: CVE-2020-7471

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2020-02-03T12:15:26.993

Modified: 2024-11-21T05:37:12.667

Link: CVE-2020-7471

cve-icon Redhat

Severity : Important

Publid Date: 2020-02-03T00:00:00Z

Links: CVE-2020-7471 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses