{"id":"CVE-2022-28347","aliases":["CVE-2022-28347","GHSA-w24h-v9qh-8gxj","BIT-DJANGO-2022-28347","PYSEC-2022-191"],"related":[],"kind":"vulnerability","state":"published","title":"SQL Injection in Django","summary":"A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the **options argument, and placing the injection payload in an option name.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the **options argument, and placing the injection payload in an option name.","source":"cvelist"},{"lang":"en","text":"A SQL injection issue was discovered in `QuerySet.explain()` in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the `**options` argument, and placing the injection payload in an option name.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se ha detectado un problema de inyección SQL en la función QuerySet.explain() en Django versiones 2.2 anteriores a 2.2.28, 3.2 anteriores a 3.2.13 y 4.0 anteriores a 4.0.4. Esto ocurre al pasar un diccionario diseñado (con expansión de diccionario) como el argumento **options, y colocar una carga útil de inyección en un nombre de opción","source":"nvd"}],"published":"2022-04-12T00:00:00.000Z","modified":"2026-09-08T08:46:37.826Z","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":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"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"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.28"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.13"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0","status":"affected","fixed":"4.0.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.2","fixed":"2.2.28"},{"status":"affected","introduced":"3.2","fixed":"3.2.13"},{"status":"affected","introduced":"4.0","fixed":"4.0.4"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"4.0","status":"affected","fixed":"4.0.4"},{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.13"},{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.28"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.28"},{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.13"},{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.4"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/","tags":["advisory","patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/11/1","tags":["advisory","mailing-list","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases/","tags":["advisory","article","patch","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://www.debian.org/security/2022/dsa-5254","tags":["advisory","third-party-advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28347","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72d","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-w24h-v9qh-8gxj","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-191.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!forum/django-announce","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-28347","url":"https://www.cve.org/CVERecord?id=CVE-2022-28347","licence":"CVE Terms of Use","modified":"2025-02-13T16:32:34.174Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w24h-v9qh-8gxj","url":"https://github.com/advisories/GHSA-w24h-v9qh-8gxj","licence":"CC-BY-4.0","modified":"2025-02-21T05:41:01.294Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-28347","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28347","licence":"Public domain","modified":"2026-06-17T04:38:24.630Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-191","url":"https://osv.dev/vulnerability/PYSEC-2022-191","licence":"CC-BY-4.0","modified":"2023-12-06T01:02:11.666Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2022-28347","url":"https://osv.dev/vulnerability/BIT-DJANGO-2022-28347","licence":"Apache-2.0","modified":"2026-09-08T08:46:37.826Z"}],"updatedAt":"2026-11-25T22:58:10.547Z","epss":{"score":0.02943,"percentile":0.87518,"date":"2026-12-02T12:00:21.000Z"}}