SQL injection in Django - CVE-2020-9402
Published: March 8, 2020
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 if untrusted data is used as a tolerance parameter in GIS functions and aggregates on Oracle. 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
Gentoo Linux
Debian Linux
Arch Linux
Fedora
py-django (Alpine package)
py3-django (Alpine package)
python-django (Debian package)
python-django
How to mitigate CVE-2020-9402
py-django (Alpine package) - update to 1.11.29-r0
py3-django (Alpine package) - update to 1.11.29-r0
python-django (Debian package) - addressed in versions 1:1.10.7-2+deb9u9, 1:1.11.29-1~deb10u1
python-django - addressed in versions 2.2.13-1.el8, 2.2.13-1.fc31, 3.0.7-1.fc32
External References
Related Security Bulletins
- SQL injection in Django
- Arch Linux update for python-django
- Gentoo update for Django
- SQL injection in py-django (Alpine package)
- SQL injection in py3-django (Alpine package)
- Debian update for python-django
- Fedora 32 update for python-django
- Fedora 31 update for python-django
- Fedora EPEL 8 update for python-django