Vulnerabilities / CVE-2019-14234

critical

CVE-2019-14234

Django: SQL injection possibility in key and index lookups for JSONField/HStoreField

Published Modified CWE 89
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory pipdjango1.11.23, 2.1.11, 2.2.4
alpine 3.10py-django1.11.23-r0
alpine 3.11py3-django1.11.23-r0
alpine 3.12py3-django1.11.23-r0
alpine 3.13py3-django1.11.23-r0
alpine 3.14py3-django1.11.23-r0
alpine 3.15py3-django1.11.23-r0
alpine 3.16py3-django1.11.23-r0
alpine 3.17py3-django1.11.23-r0
alpine 3.18py3-django1.11.23-r0
alpine 3.19py3-django1.11.23-r0
alpine 3.20py3-django1.11.23-r0
Show all 49 entries from 45 sources
SourcePackageFixed in
pip::GitHub Security Advisory pipdjango1.11.23, 2.1.11, 2.2.4
alpine 3.10py-django1.11.23-r0
alpine 3.11py3-django1.11.23-r0
alpine 3.12py3-django1.11.23-r0
alpine 3.13py3-django1.11.23-r0
alpine 3.14py3-django1.11.23-r0
alpine 3.15py3-django1.11.23-r0
alpine 3.16py3-django1.11.23-r0
alpine 3.17py3-django1.11.23-r0
alpine 3.18py3-django1.11.23-r0
alpine 3.19py3-django1.11.23-r0
alpine 3.20py3-django1.11.23-r0
alpine 3.21py3-django1.11.23-r0
alpine 3.22py3-django1.11.23-r0
alpine 3.23py3-django1.11.23-r0
alpine 3.24py3-django1.11.23-r0
alpine 3.7py-django1.11.23-r0
alpine 3.8py-django1.11.23-r0
alpine 3.9py-django1.11.23-r0
alpine edgepy3-django1.11.23-r0
debian 10python-django1:1.11.23-1~deb10u1
debian 11python-django2:2.2.4-1
debian 12python-django2:2.2.4-1
debian 13python-django2:2.2.4-1
debian 14python-django2:2.2.4-1
debian 9python-django1:1.10.7-2+deb9u6
echopython-django2:2.2.4-1
Red Hatpython-djangono fix listed
Red Hatpython-django-bash-completionno fix listed
Red Hatpython-django-docno fix listed
Red Hatpython2-djangono fix listed
Red Hatpython2-django-docno fix listed
ubuntu 16.04python-django1.8.7-1ubuntu5.10
ubuntu 16.04-ESMpython-django1.8.7-1ubuntu5.10
ubuntu 18.04python-django1:1.11.11-1ubuntu1.5
ubuntu 18.04-ESMpython-django1:1.11.11-1ubuntu1.5
ubuntu 19.04python-django1:1.11.20-1ubuntu0.2
ubuntu 20.04python-django1:1.11.22-1ubuntu1
ubuntu 20.04-ESMpython-django1:1.11.22-1ubuntu1
ubuntu 22.04python-django1:1.11.22-1ubuntu1
ubuntu 22.10python-django1:1.11.22-1ubuntu1
ubuntu 23.04python-django1:1.11.22-1ubuntu1
ubuntu 23.10python-django1:1.11.22-1ubuntu1
ubuntu 24.04python-django1:1.11.22-1ubuntu1
ubuntu 24.10python-django1:1.11.22-1ubuntu1
ubuntu 25.04python-django1:1.11.22-1ubuntu1
ubuntu 25.10python-django1:1.11.22-1ubuntu1
ubuntu 26.04python-django1:1.11.22-1ubuntu1
ubuntu 26.10python-django1:1.11.22-1ubuntu1

References

All 24 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.