SQL injection in Django - CVE-2019-14234
Published: August 1, 2019
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary SQL queries in database.
The vulnerability exists due to insufficient sanitization of user-supplied data in django.contrib.postgres.fields.JSONField and django.contrib.postgres.fields.HStoreField. A remote attacker can send a specially crafted request to the affected application and execute arbitrary SQL commands within the application database.
Successful exploitation of this vulnerability may allow a remote attacker to read, delete, modify data in database and gain complete control over the affected application.
Affected software
Arch Linux
Gentoo Linux
Fedora
SUSE Linux
Opensuse
Red Hat OpenStack
Red Hat OpenStack for IBM Power
py-django (Alpine package)
python-django (Ubuntu package)
python-django (Debian package)
python-django
python-django (Red Hat package)
How to mitigate CVE-2019-14234
py-django (Alpine package) - update to 1.11.23-r0
python-django (Ubuntu package) - addressed in versions 1.8.7-1ubuntu5.10, 1:1.11.11-1ubuntu1.5, 1:1.11.20-1ubuntu0.2
python-django (Debian package) - update to 1:1.10.7-2+deb9u6
python-django - addressed in versions 1.11.23-1.el7, 2.1.11-1.fc30
python-django (Red Hat package) - update to 2.1.11-1.el8ost
External References
Related Security Bulletins
- Multiple vulnerabilities in Django
- Ubuntu update for Django
- Arch Linux update for python-django
- Arch Linux update for python2-django
- OpenSUSE Linux update for python-Django
- Debian update for python-django
- OpenSUSE Linux update for python-Django
- Red Hat OpenStack Platform 15 update for python-django
- Gentoo update for Django
- SQL injection in py-django (Alpine package)
- Fedora 30 update for python-django
- Fedora EPEL 7 update for python-django