CVE-2019-14234: SQL Injection

Published Jul 30, 2019
·
Updated

:lookup:Key and index lookups <jsonfield.key> for :class:~django.contrib.postgres.fields.JSONField and :lookup:key lookups <hstorefield.key> for :class:~django.contrib.postgres.fields.HStoreField were subject to SQL injection, using a suitably crafted dictionary, with dictionary expansion, as the kwargs passed to QuerySet.filter().

Other sources

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.

Affected Software

15 affected componentsFixes available
debian/python-django
1:1.11.29-1~deb10u11:1.11.29-1+deb10u102:2.2.28-1~deb11u23:3.2.19-1+deb12u13:3.2.21-13:4.2.6-1
redhat/python-django<0:1.11.27-1.el7
0:1.11.27-1.el7
redhat/python-django<0:2.1.11-1.el8
0:2.1.11-1.el8
redhat/python-django<1.11.23
1.11.23
redhat/python-django<2.1.11
2.1.11
redhat/python-django<2.2.4
2.2.4
pip/Django>=2.2a1<2.2.4
2.2.4
pip/Django>=2.1a1<2.1.11
2.1.11
pip/Django>=1.11a1<1.11.23
1.11.23
djangoproject Django>=1.11<1.11.23
djangoproject Django>=2.1<2.1.11
djangoproject Django>=2.2<2.2.4
Fedoraproject Fedora=30
Debian Debian Linux=9.0
Debian Debian Linux=10.0

Event History

Aug 1, 2019
CVE Published
08:00 AM
Aug 9, 2019
CVE Published
via MITRE·12:16 PM
Data Sourced
via MITRE·12:16 PM
Description
Aug 16, 2019
Advisory Published
02:00 PM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID of this issue?

The vulnerability ID of this issue is CVE-2019-14234.

2

Which versions of Django are affected by this vulnerability?

Django versions 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4 are affected by this vulnerability.

3

What is the severity rating of CVE-2019-14234?

CVE-2019-14234 has a severity rating of 9.8, which is considered critical.

4

How can I fix this vulnerability?

To fix this vulnerability, you should upgrade Django to version 1.11.23, 2.1.11, or 2.2.4.

5

Where can I find more information about CVE-2019-14234?

You can find more information about CVE-2019-14234 in the following references: [Reference 1](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1735776), [Reference 2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1735779), [Reference 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1735780).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203