9.8critical
SQL Injection via in django-debug-toolbar
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.94% (higher than 80% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-pghf-347x-c2gjPYSEC-2021-10
Description
A SQL Injection issue in the SQL Panel in Jazzband Django Debug Toolbar before 1.11.1, 2.x before 2.2.1, and 3.x before 3.2.1 allows attackers to execute SQL statements by changing the raw_sql input field of the SQL explain, analyze, or select form.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django-debug-toolbar (PyPI) | from 0.10.0 before 1.11.1, from 2.0a1 before 2.2.1, from 3.0a1 before 3.2.1, from 2.0 before 2.2.1, from 3.0 before 3.2.1 | GitHub Advisory Database, PyPA Advisory Database |
| jazzband django_debug_toolbar | from 0.10.0 before 1.11.1, from 2.0.0 before 2.2.1, from 3.0.0 before 3.2.1 | NVD |
All scores
| GitHub | 9.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
A SQL Injection issue in the SQL Panel in Jazzband Django Debug Toolbar before 1.11.1, 2.x before 2.2.1, and 3.x before 3.2.1 allows attackers to execute SQL statements by changing the raw_sql input field of the SQL explain, analyze, or select form.
GitHub Advisory Database
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:
- Version 1.x: django-debug-toolbar 1.11.1
- Version 2.x: django-debug-toolbar 2.2.1
- Version 3.x: django-debug-toolbar 3.2.1
For more information
If you have any questions or comments about this advisory:
- Open an issue in the django-debug-toolbar repo (Please NO SENSITIVE INFORMATION, send an email instead!)
- Email us at security@jazzband.co
NVD (es)
Un problema de inyección SQL en el panel SQL en Jazzband Django Debug Toolbar versiones anteriores a 1.11.1, versiones 2.x anteriores a 2.2.1 y versiones 3.x anteriores a 3.2.1, permite a atacantes ejecutar sentencias SQL al cambiar el campo de entrada raw_sql del formulario de explicación, análisis o selección de SQL
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-30459 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pghf-347x-c2gj changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-30459 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-10 changed 2023-11-08 | CC-BY-4.0 |