# CVE-2021-30459: SQL Injection via in django-debug-toolbar

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.94%, higher than 80% of CVEs (2026-12-01)
- Published: 2021-04-14T17:27:00.000Z
- Modified: 2026-07-08T06:28:57.979Z
- Also known as: GHSA-pghf-347x-c2gj, PYSEC-2021-10
- Weaknesses: CWE-89
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- 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
- 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

## Every score

- GitHub: CVSS:3.1 9.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/jazzband/django-debug-toolbar/releases> (third-party-advisory, web)
- <https://github.com/jazzband/django-debug-toolbar/security/advisories/GHSA-pghf-347x-c2gj> (advisory, patch, third-party-advisory, web)
- <https://www.djangoproject.com/weblog/2021/apr/14/debug-toolbar-security-releases/> (article, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-30459> (advisory)
- <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-30459> (web)
- <https://github.com/jazzband/django-debug-toolbar> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django-debug-toolbar/PYSEC-2021-10.yaml> (web)
- <https://www.djangoproject.com/weblog/2021/apr/14/debug-toolbar-security-releases> (web)

## Sources

- CVE List: [CVE-2021-30459](https://www.cve.org/CVERecord?id=CVE-2021-30459), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-pghf-347x-c2gj](https://github.com/advisories/GHSA-pghf-347x-c2gj), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-30459](https://nvd.nist.gov/vuln/detail/CVE-2021-30459), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-10](https://osv.dev/vulnerability/PYSEC-2021-10), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2021-30459 · Whole record: https://cve.day/CVE-2021-30459.json · Rebuilt by cve.day 2026-11-25T22:58:00.822Z
