django-debug-toolbar
Affected
- introduced
0.10.0, fixed1.11.1(ecosystem)
Fixed versions
1.11.1
Fix
- Fixed version
1.11.1pip install --upgrade django-debug-toolbar==1.11.1
Advisory
Also known as: CVE-2021-30459, PYSEC-2021-10
SQL Injection via in django-debug-toolbar
Impact
With Django Debug Toolbar attackers are able to execute SQL by changing the raw_sql input of the SQL explain, analyze or select forms and submitting the form.
NOTE: This is a high severity issue for anyone using the toolbar in a production environment.
Generally the Django Debug Toolbar team only maintains the latest version of django-debug-toolbar, but an exception was made because of the high severity of this issue.
Patches
Please upgrade to one of the following versions, depending on the major version you're using:
For more information
If you have any questions or comments about this advisory:
High Basis: The source's own band: HIGH
0.10.0, fixed 1.11.1 (ecosystem)1.11.1
1.11.1pip install --upgrade django-debug-toolbar==1.11.12.0a1, fixed 2.2.1 (ecosystem)2.2.1
2.2.1pip install --upgrade django-debug-toolbar==2.2.13.0a1, fixed 3.2.1 (ecosystem)3.2.1
3.2.1pip install --upgrade django-debug-toolbar==3.2.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0