Description
An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. Due to an error in shallow key transformation, key and index lookups for django.contrib.postgres.fields.JSONField, and key lookups for django.contrib.postgres.fields.HStoreField, were subject to SQL injection. This could, for example, be exploited via crafted use of "OR 1=1" in a key or index name to return all records, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to the QuerySet.filter() function.
Remediation
References
Related Vulnerabilities
WordPress Plugin NextScripts:Social Networks Auto-Poster Security Bypass (4.3.17)
WordPress Plugin Upload File Type Settings Cross-Site Scripting (1.1)
MySQL Other Vulnerability (CVE-2005-0710)
WordPress Plugin All 404 Redirect to Homepage Cross-Site Scripting (1.21)
Joomla! Core 3.x.x Cross-Site Request Forgery (3.2.0 - 3.9.12)