SQL injection in Django - CVE-2021-35042
Published: July 1, 2021 / Updated: September 25, 2021
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 "QuerySet.order_by()". 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
python-django
dev-python/django
How to mitigate CVE-2021-35042
python-django - update to 3.1.13-1.fc34
dev-python/django - update to 5.2.1