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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 2:2.2.4-1 | — |
| Debian 13 | python-django | 2:2.2.4-1 | — |
| Debian 12 | python-django | 2:2.2.4-1 | — |
| Debian 10 | python-django | 1:1.11.23-1~deb10u1 | DSA-4498-1 |
| Debian 9 | python-django | 1:1.10.7-2+deb9u6 | DSA-4498-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | python-django | 1:1.11.22-1ubuntu1 | — |
| Ubuntu 18.04 LTS | python-django | 1:1.11.11-1ubuntu1.5 | USN-4084-1 |
| Ubuntu 16.04 LTS | python-django | 1.8.7-1ubuntu5.10 | USN-4084-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | python-django | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenStack 15 | python-django +2 | 2.1.11-1.el8ost | RHSA-2020:1324 |
| Red Hat OpenStack 13 | python-django +2 | 1.11.27-1.el7ost | RHSA-2020:4390 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | python-Django | 2.2.4-bp151.3.3.1 | openSUSE-SU-2019:1872-1 |
| SUSE OpenStack Cloud Crowbar 9 | python-Django1 | 1.11.23-3.9.1 | SUSE-SU-2019:2335-1 |
| SUSE OpenStack Cloud Crowbar 8 | python-Django | 1.11.23-3.12.1 | SUSE-SU-2019:2257-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud 9 | python-Django1 | 1.11.23-3.9.1 | SUSE-SU-2019:2335-1 |
| SUSE OpenStack Cloud 8 | python-Django | 1.11.23-3.12.1 | SUSE-SU-2019:2257-1 |
| SUSE OpenStack Cloud 7 | python-Django | 1.8.19-3.15.1 | SUSE-SU-2019:2180-1 |
| SUSE HPE Helion OpenStack 8 | python-Django | 1.11.23-3.12.1 | SUSE-SU-2019:2257-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.1 | python-Django | 2.2.4-lp151.2.3.1 | openSUSE-SU-2019:1839-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-django | 1.11.23-r0 | — |
| Alpine v3.23 | py3-django | 1.11.23-r0 | — |
| Alpine v3.22 | py3-django | 1.11.23-r0 | — |
| Alpine v3.21 | py3-django | 1.11.23-r0 | — |
| Alpine v3.20 | py3-django | 1.11.23-r0 | — |
Show 13 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | py3-django | 1.11.23-r0 | — |
| Alpine v3.18 | py3-django | 1.11.23-r0 | — |
| Alpine v3.17 | py3-django | 1.11.23-r0 | — |
| Alpine v3.16 | py3-django | 1.11.23-r0 | — |
| Alpine v3.15 | py3-django | 1.11.23-r0 | — |
| Alpine v3.14 | py3-django | 1.11.23-r0 | — |
| Alpine v3.13 | py3-django | 1.11.23-r0 | — |
| Alpine v3.12 | py3-django | 1.11.23-r0 | — |
| Alpine v3.11 | py3-django | 1.11.23-r0 | — |
| Alpine v3.10 | py-django | 1.11.23-r0 | — |
| Alpine v3.9 | py-django | 1.11.23-r0 | — |
| Alpine v3.8 | py-django | 1.11.23-r0 | — |
| Alpine v3.7 | py-django | 1.11.23-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
malvika-thakur/CVE-2019-14234 ★ 2 · Sep 15, 2023
POC-Django JSONField/HStoreField SQL Injection Vulnerability (CVE-2019-14234)
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.11a1, < 1.11.23 | 1.11.23 | GHSA-6r97-cj55-9hrq |
| PyPI | django | >= 2.1a1, < 2.1.11 | 2.1.11 | GHSA-6r97-cj55-9hrq |
| PyPI | django | >= 2.2a1, < 2.2.4 | 2.2.4 | GHSA-6r97-cj55-9hrq |
| PyPI | django | >= 2.1, < 2.1.11 · >= 1.11, < 1.11.23 · >= 2.2, < 2.2.4 | 2.1.11, 1.11.23, 2.2.4 | PYSEC-2019-13 |
Advisories 10
- RHSA-2020:4390 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2020:1324 Red Hat Security Advisory: python-django security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- USN-4084-1 python-django vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- DSA-4498-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2019:1872-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2257-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2180-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2019:1839-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2019:2335-1 Security update for python-Django1 SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-0539 Red Hat OpenStack: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 3, 2024
References
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs
- https://www.djangoproject.com/weblog/2019/aug/01/security-releases/
- 20190812 [SECURITY] [DSA 4498-1] python-django security update mailing-list
- DSA-4498 vendor-advisory
- openSUSE-SU-2019:1872 vendor-advisory
- FEDORA-2019-647f74ce51 vendor-advisory
- https://security.netapp.com/advisory/ntap-20190828-0002/
- GLSA-202004-17 vendor-advisory