{"id":"CVE-2021-30459","aliases":["CVE-2021-30459","GHSA-pghf-347x-c2gj","PYSEC-2021-10"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Injection via in django-debug-toolbar","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nWith 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.\n\n**NOTE:** This is a high severity issue for anyone using the toolbar in a **production environment**.\n\nGenerally 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.\n\n### Patches\nPlease upgrade to one of the following versions, depending on the major version you're using:\n\n- Version 1.x: [django-debug-toolbar 1.11.1](https://pypi.org/project/django-debug-toolbar/1.11.1/)\n- Version 2.x: [django-debug-toolbar 2.2.1](https://pypi.org/project/django-debug-toolbar/2.2.1/)\n- Version 3.x: [django-debug-toolbar 3.2.1](https://pypi.org/project/django-debug-toolbar/3.2.1/)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in the [django-debug-toolbar repo](https://github.com/jazzband/django-debug-toolbar/issues/new)  (Please NO SENSITIVE INFORMATION, send an email instead!)\n* Email us at [security@jazzband.co](mailto:security@jazzband.co)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-04-14T17:27:00.000Z","modified":"2026-07-08T06:28:57.979Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.10.0","status":"affected","fixed":"1.11.1"}],"ecosystem":"PyPI","package":"django-debug-toolbar","purl":"pkg:pypi/django-debug-toolbar","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0a1","status":"affected","fixed":"2.2.1"}],"ecosystem":"PyPI","package":"django-debug-toolbar","purl":"pkg:pypi/django-debug-toolbar","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0a1","status":"affected","fixed":"3.2.1"}],"ecosystem":"PyPI","package":"django-debug-toolbar","purl":"pkg:pypi/django-debug-toolbar","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.10.0","fixed":"1.11.1"},{"status":"affected","introduced":"2.0.0","fixed":"2.2.1"},{"status":"affected","introduced":"3.0.0","fixed":"3.2.1"}],"vendor":"jazzband","product":"django_debug_toolbar","cpe":"cpe:2.3:a:jazzband:django_debug_toolbar:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.10.0","status":"affected","fixed":"1.11.1"},{"type":"ecosystem","introduced":"2.0","status":"affected","fixed":"2.2.1"},{"type":"ecosystem","introduced":"3.0","status":"affected","fixed":"3.2.1"}],"ecosystem":"PyPI","package":"django-debug-toolbar","purl":"pkg:pypi/django-debug-toolbar","source":"pysec"}],"references":[{"url":"https://github.com/jazzband/django-debug-toolbar/releases","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/jazzband/django-debug-toolbar/security/advisories/GHSA-pghf-347x-c2gj","tags":["advisory","patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.djangoproject.com/weblog/2021/apr/14/debug-toolbar-security-releases/","tags":["article","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30459","tags":["advisory"],"sources":["ghsa"]},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-30459","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jazzband/django-debug-toolbar","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-debug-toolbar/PYSEC-2021-10.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2021/apr/14/debug-toolbar-security-releases","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-30459","url":"https://www.cve.org/CVERecord?id=CVE-2021-30459","licence":"CVE Terms of Use","modified":"2024-08-03T22:32:41.140Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pghf-347x-c2gj","url":"https://github.com/advisories/GHSA-pghf-347x-c2gj","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:57.979Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-30459","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-30459","licence":"Public domain","modified":"2026-06-17T03:50:17.070Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-10","url":"https://osv.dev/vulnerability/PYSEC-2021-10","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:46.277Z"}],"updatedAt":"2026-11-25T22:58:00.822Z","epss":{"score":0.01941,"percentile":0.80752,"date":"2026-12-01T12:00:22.000Z"}}