{"id":"CVE-2019-14234","aliases":["CVE-2019-14234","GHSA-6r97-cj55-9hrq","PYSEC-2019-13"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Injection in Django","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Se detectó un problema en Django versiones 1.11.x anteriores a 1.11.23, versiones 2.1.x anteriores a 2.1.11 y versiones 2.2.x anteriores a 2.2.4. Debido a un error en la transformación de clave superficial, las búsquedas de clave e índice para django.contrib.postgres.fields.JSONField, y las búsquedas de clave para django.contrib.postgres.fields.HStoreField, estaban sujetas a una inyección SQL. Esto podría, por ejemplo, ser explotado mediante el uso de un \"OR 1 = 1\" diseñado en una clave o nombre de índice para devolver todos los registros, utilizando un diccionario cuidadosamente diseñado, con expansión de diccionario, como los **kwargs pasados a la función QuerySet.filter().","source":"nvd"}],"published":"2019-08-09T12:16:44.000Z","modified":"2026-06-17T02:18:00.427Z","severity":{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.11a1","status":"affected","fixed":"1.11.23"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.1a1","status":"affected","fixed":"2.1.11"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.2a1","status":"affected","fixed":"2.2.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.11","fixed":"1.11.23"},{"status":"affected","introduced":"2.1","fixed":"2.1.11"},{"status":"affected","introduced":"2.2","fixed":"2.2.4"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"30"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.1","status":"affected","fixed":"2.1.11"},{"type":"ecosystem","introduced":"1.11","status":"affected","fixed":"1.11.23"},{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://groups.google.com/forum/#%21topic/django-announce/jIoju2-KLDs","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.djangoproject.com/weblog/2019/aug/01/security-releases/","tags":["article","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://seclists.org/bugtraq/2019/Aug/15","tags":["mailing-list","third-party-advisory","web","x-refsource-bugtraq","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.debian.org/security/2019/dsa-4498","tags":["advisory","third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html","tags":["mailing-list","third-party-advisory","vendor-advisory","web","x-refsource-suse","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20190828-0002/","tags":["advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://security.gentoo.org/glsa/202004-17","tags":["advisory","vendor-advisory","web","x-refsource-gentoo","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-14234","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/4f5b58f5cd3c57fee9972ab074f8dc6895d8f387","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/ed682a24fca774818542757651bfba576c3fc3ef","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/f74b3ae3628c26e1b4f8db3d13a91d52a833a975","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-6r97-cj55-9hrq","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-13.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!topic/django-announce/jIoju2-KLDs","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20190828-0002","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2019/aug/01/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/STVX7X7IDWAH5SKE6MBMY3TEI6ZODBTK/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2019-14234","url":"https://www.cve.org/CVERecord?id=CVE-2019-14234","licence":"CVE Terms of Use","modified":"2024-08-05T00:12:42.480Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6r97-cj55-9hrq","url":"https://github.com/advisories/GHSA-6r97-cj55-9hrq","licence":"CC-BY-4.0","modified":"2025-02-21T05:50:19.980Z"},{"source":"nvd","name":"NVD","id":"CVE-2019-14234","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-14234","licence":"Public domain","modified":"2026-06-17T02:18:00.427Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2019-13","url":"https://osv.dev/vulnerability/PYSEC-2019-13","licence":"CC-BY-4.0","modified":"2023-11-08T04:01:09.403Z"}],"updatedAt":"2026-11-25T22:57:46.424Z","epss":{"score":0.47694,"percentile":0.99133,"date":"2026-11-25T12:00:23.000Z"}}