CVE-2020-7471

django: potential SQL injection via StringAgg(delimiter)

Published Feb 3, 2020 CVSS 3.1 · 9.8 Critical EPSS 65.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

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
Type Values Removed Values Added
Metrics epss

{'score': 0.08683}

epss

{'score': 0.07771}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 4, 2024, 9:33 AM
Reserved
Jan 21, 2020, 12:00 AM
Status
Modified
Published
Feb 3, 2020, 12:15 PM
Modified
Jun 17, 2026, 3:24 AM
Severity
Important
Public date
Feb 3, 2020, 12:00 AM