SQL injection in Django - CVE-2020-9402

 

SQL injection in Django - CVE-2020-9402

Published: March 8, 2020


Vulnerability identifier: #VU25812
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-9402
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

Django
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

Install update from vendor's website.

Django - addressed in versions 1.11.29, 2.2.11, 3.0.4
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