# CVE-2019-14234: SQL Injection in Django

- Severity: Critical 9.8 (CVSS:3.0, scored by NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 47.7%, higher than 99% of CVEs (2026-11-25)
- Published: 2019-08-09T12:16:44.000Z
- Modified: 2026-06-17T02:18:00.427Z
- Also known as: GHSA-6r97-cj55-9hrq, PYSEC-2019-13
- Weaknesses: CWE-89
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): from 1.11a1 before 1.11.23; from 2.1a1 before 2.1.11; from 2.2a1 before 2.2.4; from 2.1 before 2.1.11; from 1.11 before 1.11.23; from 2.2 before 2.2.4
- djangoproject django: from 1.11 before 1.11.23; from 2.1 before 2.1.11; from 2.2 before 2.2.4
- fedoraproject fedora: 30
- debian debian_linux: 9.0; 10.0

## Every score

- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (vendor-advisory, web)
- <https://groups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs>
- <https://www.djangoproject.com/weblog/2019/aug/01/security-releases/> (article, vendor-advisory)
- <https://seclists.org/bugtraq/2019/Aug/15> (mailing-list, third-party-advisory, web)
- <https://www.debian.org/security/2019/dsa-4498> (advisory, third-party-advisory, vendor-advisory, web)
- <http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html> (mailing-list, third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/> (vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20190828-0002/> (advisory)
- <https://security.gentoo.org/glsa/202004-17> (advisory, vendor-advisory, web)
- <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://docs.djangoproject.com/en/dev/releases/security> (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)
- <https://security.netapp.com/advisory/ntap-20190828-0002> (web)
- <https://www.djangoproject.com/weblog/2019/aug/01/security-releases> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/> (web)

## Sources

- CVE List: [CVE-2019-14234](https://www.cve.org/CVERecord?id=CVE-2019-14234), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-6r97-cj55-9hrq](https://github.com/advisories/GHSA-6r97-cj55-9hrq), CC-BY-4.0, modified 2025-02-21
- NVD: [CVE-2019-14234](https://nvd.nist.gov/vuln/detail/CVE-2019-14234), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2019-13](https://osv.dev/vulnerability/PYSEC-2019-13), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2019-14234 · Whole record: https://cve.day/CVE-2019-14234.json · Rebuilt by cve.day 2026-11-25T22:57:46.424Z
