{"cve":"CVE-2020-7471","nvd":{"published":"2020-02-03T12:15:26.993","modified":"2026-06-17T03:24:50.777","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["http://www.openwall.com/lists/oss-security/2020/02/03/1","https://docs.djangoproject.com/en/3.0/releases/security/","https://github.com/django/django/commit/eb31d845323618d688ad429479c6dda973056136","https://groups.google.com/forum/#%21topic/django-announce/X45S86X5bZI","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4A2AP4T7RKPBCLTI2NNQG3T6MINDUUMZ/"],"products":["djangoproject:django"],"source":"nvd","synced_at":"2026-10-19T21:01:01.339895972+00:00"},"epss":{"cve":"CVE-2020-7471","score":0.65575,"percentile":0.99263,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hmr4-m2h5-33qx","url":"https://osv.dev/vulnerability/GHSA-hmr4-m2h5-33qx","summary":"SQL injection in Django","modified":"2025-02-21T06:12:43.981276Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":["<1.11.28"],"fixed":["1.11.28"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.0 <2.2.10"],"fixed":["2.2.10"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.0 <3.0.3"],"fixed":["3.0.3"]}]},{"id":"PYSEC-2020-35","url":"https://osv.dev/vulnerability/PYSEC-2020-35","summary":"","modified":"2023-12-06T01:00:38.606116Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=1.11 <1.11.28",">=2.2 <2.2.10",">=3.0 <3.0.3"],"fixed":["1.11.28","2.2.10","3.0.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}