CVE-2020-7471

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-7471
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7471.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-7471
Aliases
Downstream
Related
Published
2020-02-03T12:15:26Z
Modified
2025-09-30T08:15:46.100383Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/django/django

Affected ranges

Type
GIT
Repo
https://github.com/django/django
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

1.*

1.0
1.1
1.2
1.2.1
1.3
1.4
1.7a1
1.7a2