Name | CVE-2019-14234 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-4498-1 |
Debian Bugs | 934026 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
python-django (PTS) | bullseye (security), bullseye | 2:2.2.28-1~deb11u2 | fixed |
bookworm, bookworm (security) | 3:3.2.19-1+deb12u1 | fixed | |
sid, trixie | 3:4.2.16-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
python-django | source | jessie | (not affected) | |||
python-django | source | stretch | 1:1.10.7-2+deb9u6 | DSA-4498-1 | ||
python-django | source | buster | 1:1.11.23-1~deb10u1 | DSA-4498-1 | ||
python-django | source | (unstable) | 2:2.2.4-1 | 934026 |
[jessie] - python-django <not-affected> (Vulnerable code not present)
https://www.djangoproject.com/weblog/2019/aug/01/security-releases/
https://github.com/django/django/commit/4f5b58f5cd3c57fee9972ab074f8dc6895d8f387 (2.2.x)
https://github.com/django/django/commit/ed682a24fca774818542757651bfba576c3fc3ef (1.11.x)