CVE-2021-30459 json
SQL Injection via in django-debug-toolbar
published 2021-04-14 5 y ago modified 2026-07-08 4 mo ago also GHSA-pghf-347x-c2gj , PYSEC-2021-10 , EUVD-2021-0052
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 80%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi django-debug-toolbar 1.11.1, 2.2.1, 3.2.1
- jazzband django_debug_toolbar 1.11.1, 2.2.1, 3.2.1
- python-django-debug-toolbar openSUSE Tumbleweed 7.0.0-1.1
- python-django-debug-toolbar openSUSE Tumbleweed 4.3-1.2
opensuse advisories openSUSE-SU-2026:11271-1openSUSE-SU-2024:14137-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-30459 updated cvss 9.8
python-django-debug-toolbar: SQL Injection issue allows attackers to execute SQL statements
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.94% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django-debug-toolbar | >=0.10.0, <1.11.1 >=2.0a1, <2.2.1 >=3.0a1, <3.2.1 >=2.0, <2.2.1 >=3.0, <3.2.1 |
1.11.1 2.2.1 3.2.1 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/jazzband/django-debug-toolbar/security/advisories/GHSA-pghf-347x-c2gj
web, patch, third-party-advisory, advisory
-
djangoproject.com
/weblog/2021/apr/14/debug-toolbar-security-releases/
vendor-advisory, article
-
github.com
/jazzband/django-debug-toolbar/releases
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-30459
advisory
-
cve.mitre.org
/cgi-bin/cvename.cgi?name=CVE-2021-30459
web
-
github.com
/jazzband/django-debug-toolbar
package
-
github.com
/pypa/advisory-database/tree/main/vulns/django-debug-toolbar/PYSEC-2021-10.yaml
web
-
djangoproject.com
/weblog/2021/apr/14/debug-toolbar-security-releases
web
Sources
- CVE List CVE-2021-30459
- GitHub Advisory GHSA-pghf-347x-c2gj
- NVD CVE-2021-30459
- OSV PYSEC-2021-10
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.