CVE-2021-30459
JSON

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 packageVersionsReported by
Unspecified productn/aCVE 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.1GitHub Advisory Database, PyPA Advisory Database
jazzband django_debug_toolbarfrom 0.10.0 before 1.11.1, from 2.0.0 before 2.2.1, from 3.0.0 before 3.2.1NVD

All scores

GitHub9.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHubhigh CVSS:4.0CVSS: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
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV: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:

For more information

If you have any questions or comments about this advisory:

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

SourceRecordLicence
CVE ListCVE-2021-30459 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-pghf-347x-c2gj changed 2026-07-08CC-BY-4.0
NVDCVE-2021-30459 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-10 changed 2023-11-08CC-BY-4.0