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.
| Type | CWE ID | Description |
|---|---|---|
| text | N/A | n/a |
| Version | Base score | Base severity | Vector |
|---|
| CAPEC ID | Description |
|---|
| Event | Date |
|---|
| Hyperlink | Resource |
|---|---|
| https://docs.djangoproject.com/en/dev/releases/security/ | x_refsource_MISC |
| https://groups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs | x_refsource_MISC |
| https://www.djangoproject.com/weblog/2019/aug/01/security-releases/ | x_refsource_CONFIRM |
| https://seclists.org/bugtraq/2019/Aug/15 | mailing-list x_refsource_BUGTRAQ |
| https://www.debian.org/security/2019/dsa-4498 | vendor-advisory x_refsource_DEBIAN |
| http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html | vendor-advisory x_refsource_SUSE |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/ | vendor-advisory x_refsource_FEDORA |
| https://security.netapp.com/advisory/ntap-20190828-0002/ | x_refsource_CONFIRM |
| https://security.gentoo.org/glsa/202004-17 | vendor-advisory x_refsource_GENTOO |
| Version | Base score | Base severity | Vector |
|---|
| CAPEC ID | Description |
|---|
| Event | Date |
|---|
| Hyperlink | Resource |
|---|---|
| https://docs.djangoproject.com/en/dev/releases/security/ | x_refsource_MISC x_transferred |
| https://groups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs | x_refsource_MISC x_transferred |
| https://www.djangoproject.com/weblog/2019/aug/01/security-releases/ | x_refsource_CONFIRM x_transferred |
| https://seclists.org/bugtraq/2019/Aug/15 | mailing-list x_refsource_BUGTRAQ x_transferred |
| https://www.debian.org/security/2019/dsa-4498 | vendor-advisory x_refsource_DEBIAN x_transferred |
| http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html | vendor-advisory x_refsource_SUSE x_transferred |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/ | vendor-advisory x_refsource_FEDORA x_transferred |
| https://security.netapp.com/advisory/ntap-20190828-0002/ | x_refsource_CONFIRM x_transferred |
| https://security.gentoo.org/glsa/202004-17 | vendor-advisory x_refsource_GENTOO x_transferred |