cve.bz

CVE-2019-14234 SQL Injection

9.8 criticalEPSS 48%Fix available

Critical (9.8). EPSS 48% estimated probability of exploitation activity in the next 30 days. Fixed in django 1.11.23, 2.1.11, 2.2.4.

On this page
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

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
48% (unchanged from 48% a week ago; 48% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-89 Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-14234 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-14234?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-14234?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-14234 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
djangoproject:djangofrom 1.11 before 1.11.23
djangoproject:djangofrom 2.1 before 2.1.11
djangoproject:djangofrom 2.2 before 2.2.4
fedoraproject:fedora30
debian:debian_linux9.0
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6r97-cj55-9hrqPyPIdjango>=1.11a1 <1.11.231.11.23
GHSA-6r97-cj55-9hrqPyPIdjango>=2.1a1 <2.1.112.1.11
GHSA-6r97-cj55-9hrqPyPIdjango>=2.2a1 <2.2.42.2.4
PYSEC-2019-13PyPIdjango>=2.1 <2.1.11
>=1.11 <1.11.23
>=2.2 <2.2.4
2.1.11, 1.11.23, 2.2.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9python-django1:1.10.7-2+deb9u6DSA-4498-1
Debian10python-django1:1.11.23-1~deb10u1DSA-4498-1
Debian12, 13, 14python-django2:2.2.4-1DEBIAN-CVE-2019-14234
Ubuntu16.04:LTSpython-django1.8.7-1ubuntu5.10UBUNTU-CVE-2019-14234 USN-4084-1
Ubuntu18.04:LTSpython-django1:1.11.11-1ubuntu1.5UBUNTU-CVE-2019-14234 USN-4084-1
Ubuntu20.04:LTSpython-django1:1.11.22-1ubuntu1UBUNTU-CVE-2019-14234
UbuntuPro:14.04:LTSpython-djangono fix listedUBUNTU-CVE-2019-14234
Red Hatopenstack:13::el7python-django, python2-django, python-django-bash-completion0:1.11.27-1.el7ostRHSA-2020:4390
Red Hatopenstack:15::el8python-django, python3-django, python-django-bash-completion0:2.1.11-1.el8ostRHSA-2020:1324
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Django1.11.23-3.12.1SUSE-SU-2019:2257-1
SUSEOpenStack Cloud 7python-Django1.8.19-3.15.1SUSE-SU-2019:2180-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Django11.11.23-3.9.1SUSE-SU-2019:2335-1
SUSEPackage Hub 15 SP1python-Django2.2.4-bp151.3.3.1openSUSE-SU-2019:1872-1
openSUSELeap 15.1python-Django2.2.4-lp151.2.3.1openSUSE-SU-2019:1839-1
Alpinev3.7, v3.8, v3.9 and 1 morepy-django1.11.23-r0ALPINE-CVE-2019-14234
Alpinev3.11, v3.12, v3.13 and 11 morepy3-django1.11.23-r0ALPINE-CVE-2019-14234

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue affects the versions of python-django as shipped with Red Hat Gluster Storage 3, Red Hat Ceph Storage 2 and 3, as it contains the vulnerable code.

This issue affects Red Hat Update Infrastructure for Cloud Providers, but the vulnerable functions in python-django are currently not used in any part of the Product.

This issue does not affect Red Hat Satellite as the vulnerable functions in python-django are not used.

Red Hat OpenStack Platform:

* This issue affects all versions of python-django shipped with Red Hat Openstack Platform versions 9-15, as it contains the vulnerable code. However, the version of python-django shipped with Red Hat Openstack Platform versions 9 & 10 do not contain the code for JSONFields.

* Because the flaw's impact is Medium, it will not be fixed in Red Hat Openstack Platform 9 which is retiring on 8/24.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 13.0 (Queens)python-django-0:1.11.27-1.el7ostFixed 2020-10-28RHSA-2020:4390
Red Hat OpenStack Platform 13.0 (Queens) for RHEL 7.6 EUSpython-django-0:1.11.27-1.el7ostFixed 2020-10-28RHSA-2020:4390
Red Hat OpenStack Platform 15.0 (Stein)python-django-0:2.1.11-1.el8ostFixed 2020-04-06RHSA-2020:1324
Red Hat Ceph Storage 2calamari-serverNot affected
Red Hat Ceph Storage 2python-djangoOut of support scope
Red Hat Ceph Storage 3python-djangoWill not fix
Red Hat Certification for Red Hat Enterprise Linux 7python-djangoFix deferred
Red Hat OpenStack Platform 10 (Newton)python-djangoWill not fix
Red Hat OpenStack Platform 14 (Rocky)python-djangoOut of support scope
Red Hat OpenStack Platform 9 (Mitaka)python-djangoWill not fix
Red Hat OpenStack Platform 9 (Mitaka) Operational Toolspython-djangoWill not fix
Red Hat Satellite 6python-djangoNot affected
Red Hat Storage 3python-djangoFix deferred
Red Hat Update Infrastructure 3 for Cloud Providerspython-djangoFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-14234.

Attack patterns (CAPEC)

  • CAPEC-7 Blind SQL Injection Likelihood: High · Severity: High
  • CAPEC-66 SQL Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
  • CAPEC-109 Object Relational Mapping Injection Likelihood: Low · Severity: High
  • CAPEC-110 SQL Injection through SOAP Parameter Tampering Likelihood: High · Severity: Very High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON