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.
CVSS Details
- CVSS 3.1 Base Score: 9.8
- CVSS 3.0 Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade py3-djangoUpgrade py-django | Nov 8, 2019 | Aug 9, 2019 |
| Arch Linux | — | Upgrade to the latest version of Arch Linux | Jul 11, 2025 | Aug 9, 2019 |
| Debian | — | Upgrade python-django | Aug 13, 2019 | Aug 9, 2019 |
| Freebsd | — | Upgrade py35-django22Upgrade py36-django111Upgrade py36-django21Upgrade py37-django21Upgrade py37-django111Upgrade py27-django21Upgrade py27-django111Upgrade py37-django22Upgrade py36-django22Upgrade py35-django21Upgrade py27-django22Upgrade py35-django111 | Aug 4, 2019 | Aug 3, 2019 |
| Gentoo Linux | — | Upgrade dev-python/django. | May 1, 2020 | Aug 9, 2019 |
| Oracle Solaris | — | Upgrade library/python/django-37 to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4Upgrade library/python/django-34 to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4Upgrade library/python/django-27 to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4Upgrade library/python/django to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4Upgrade library/python/django-35 to version 1.11.23-11.4.14.0.1.3.0 on Solaris 11.4 | Oct 16, 2019 | Aug 9, 2019 |
| Suse | — | Upgrade python3-django | Aug 9, 2019 | Aug 1, 2019 |
| Ubuntu | — | Upgrade python3-djangoUpgrade python-django | Aug 2, 2019 | Aug 1, 2019 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub