Security mailing lists by PureSourceCode

CVE-2020-7471

CRITICAL 9.8CVSS 3.1

SQL injection in Django

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
3 Feb 2020
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-89
Also known as
BIT-django-2020-7471GHSA-hmr4-m2h5-33qxPYSEC-2020-35
Sources
NVDJSONOSV GHSA-hmr4-m2h5-33qxJSONOSV PYSEC-2020-35JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 HIGH 7.5 AV:N/AC:L/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 1.11, < 1.11.28 1.11.28
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 2.2, < 2.2.10 2.2.10
NVD djangoproject django
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*
>= 3.0, < 3.0.3 3.0.3
OSV PyPI django < 1.11.28 1.11.28
OSV PyPI django >= 2.0, < 2.2.10 2.2.10
OSV PyPI django >= 3.0, < 3.0.3 3.0.3
OSV PyPI django >= 1.11, < 1.11.28; >= 2.2, < 2.2.10; >= 3.0, < 3.0.3 1.11.28, 2.2.10, 3.0.3

References

History

  • 25 Nov 2026 20:31 UTC · NVD: first stored (published 3 Feb 2020)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Feb 2020)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Feb 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.