PT-2019-3437 · Django Software Foundation+3 · Django+3
Published
2019-07-26
·
Updated
2025-09-29
·
CVE-2019-14234
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
Django versions 1.11.x through 1.11.22
Django versions 2.1.x through 2.1.10
Django versions 2.2.x through 2.2.3
Description
The issue is related to an error in shallow key transformation, affecting key and index lookups for
django.contrib.postgres.fields.JSONField and key lookups for django.contrib.postgres.fields.HStoreField. This could lead to SQL injection, potentially allowing a remote attacker to compromise data integrity, gain unauthorized access to protected information, and cause a denial of service. For example, an attacker could exploit this 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.Recommendations
For Django versions 1.11.x through 1.11.22, update to version 1.11.23 or later.
For Django versions 2.1.x through 2.1.10, update to version 2.1.11 or later.
For Django versions 2.2.x through 2.2.3, update to version 2.2.4 or later.
Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Django
Suse
Ubuntu