PT-2020-6269 · Django+2 · Django+2
Simon Charette
·
Published
2020-02-03
·
Updated
2026-01-03
·
CVE-2020-7471
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Django versions 1.11 through 1.11.27
Django versions 2.2 through 2.2.9
Django versions 3.0 through 3.0.2
Description
The issue allows SQL Injection if untrusted data is used as a StringAgg delimiter, potentially enabling an attacker to break escaping and inject malicious SQL. This could allow a remote attacker to access confidential data, compromise its integrity, and cause a denial of service.
Recommendations
For Django versions 1.11 through 1.11.27, update to version 1.11.28 or later.
For Django versions 2.2 through 2.2.9, update to version 2.2.10 or later.
For Django versions 3.0 through 3.0.2, update to version 3.0.3 or later.
As a temporary workaround, consider restricting the use of the
contrib.postgres.aggregates.StringAgg instance to minimize the risk of exploitation.Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Django
Ubuntu