Shellfeed logo Shellfeed

CVE-2019-14234 · CRITICAL (CVSS 9.8)

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.

Details

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.

Severity

CRITICAL (CVSS 9.8) — vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

  • PyPI django [1.11a1 – 1.11.23]
  • PyPI django [2.1a1 – 2.1.11]
  • PyPI django [2.2a1 – 2.2.4]
  • GIT github.com/django/django [c669cf279ae7b3e02a61db4fb077030a4db80e4f – 974897759e9afc4cc56fb87e12319fa9697e93c9] [e7ad40fcf4b103bb5134f6a94eb86a4e10e53cb3 – ff9dcc0867eba90e9ab1b07a4b3eb79928717918] [635d53a86a36cde7866b9caefeb64d809e6bfcd9 – 8687fbe034ac5eec20e0948b98eb8a2f0b1431a1]

References