GitHub Advisoryadvisory · PyPI

GHSA-6r97-cj55-9hrq SQL Injection in Django

CRITICAL Published 2019-08-16 Modified 2024-09-20 Official page ↗
Aliases
CVE-2019-14234
Ecosystem
PyPI
Packages
Django
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-89
Reviewed
2019-08-09

Affected packages

• PyPI Django: >= 1.11a1, < 1.11.23 → fixed in 1.11.23 • PyPI Django: >= 2.1a1, < 2.1.11 → fixed in 2.1.11 • PyPI Django: >= 2.2a1, < 2.2.4 → fixed in 2.2.4

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.

Related

Alias · CVE (1)

  • CVE-2019-14234 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. vulnerability

Weakness · CWE (1)

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness

References