CVE-2019-14234
CRITICAL 9.8CVSS 3.0SQL Injection in Django
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.
- Published
- 9 Aug 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-6r97-cj55-9hrqPYSEC-2019-13
- Sources
- NVDJSONOSV GHSA-6r97-cj55-9hrqJSONOSV PYSEC-2019-13JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 1.11, < 1.11.23 | 1.11.23 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 2.1, < 2.1.11 | 2.1.11 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 2.2, < 2.2.4 | 2.2.4 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:* |
= 30 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | PyPI | django | >= 1.11a1, < 1.11.23 | 1.11.23 |
| OSV | PyPI | django | >= 2.1a1, < 2.1.11 | 2.1.11 |
| OSV | PyPI | django | >= 2.2a1, < 2.2.4 | 2.2.4 |
| OSV | 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 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html · Mailing List, Third Party Advisory, WEB
- https://docs.djangoproject.com/en/dev/releases/security/ · Vendor Advisory, WEB
- https://groups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/
- https://seclists.org/bugtraq/2019/Aug/15 · Mailing List, Third Party Advisory, WEB
- https://security.gentoo.org/glsa/202004-17 · WEB, ADVISORY
- https://security.netapp.com/advisory/ntap-20190828-0002/ · WEB, ADVISORY
- https://www.debian.org/security/2019/dsa-4498 · Third Party Advisory, WEB, ADVISORY
- https://www.djangoproject.com/weblog/2019/aug/01/security-releases/ · Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2019-14234 · ADVISORY
- https://github.com/django/django/commit/4f5b58f5cd3c57fee9972ab074f8dc6895d8f387 · WEB
- https://github.com/django/django/commit/ed682a24fca774818542757651bfba576c3fc3ef · WEB
- https://github.com/django/django/commit/f74b3ae3628c26e1b4f8db3d13a91d52a833a975 · WEB
- https://github.com/advisories/GHSA-6r97-cj55-9hrq · ADVISORY
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-13.yaml · WEB
- https://groups.google.com/forum/#!topic/django-announce/jIoju2-KLDs · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK · WEB
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 9 Aug 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Aug 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 16 Aug 2019)