{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-28347","id":"CVE-2022-28347","title":"SQL Injection in Django","description":"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.","descriptionLong":"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.","published":"2022-04-12T00:00:00.000Z","updated":"2026-11-16T10:45:08.760863800Z","reserved":"2022-04-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.28",">=3.2 <3.2.13",">=4.0 <4.0.4"],"fixed":["2.2.28","3.2.13","4.0.4"],"advisory":"GHSA-w24h-v9qh-8gxj"}],"cwes":["CWE-89"],"aliases":["BIT-django-2022-28347","GHSA-w24h-v9qh-8gxj","PYSEC-2022-191"],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["x_transferred","web"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/","tags":["x_transferred","Patch","Vendor Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/11/1","tags":["x_transferred","Mailing List","Patch","Third Party Advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases/","tags":["x_transferred","Patch","Vendor Advisory","article"]},{"url":"https://www.debian.org/security/2022/dsa-5254","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/28xxx/CVE-2022-28347.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28347","tags":["advisory"]},{"url":"https://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402","tags":["web"]},{"url":"https://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5","tags":["web"]},{"url":"https://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81","tags":["web"]},{"url":"https://github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72d","tags":["web"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security","tags":["web"]},{"url":"https://github.com/advisories/GHSA-w24h-v9qh-8gxj","tags":["advisory"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-191.yaml","tags":["web"]},{"url":"https://groups.google.com/forum/#!forum/django-announce","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02943,"epssPercentile":0.87406,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-28347","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28347","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-28347","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w24h-v9qh-8gxj","ok":true,"note":"GHSA-w24h-v9qh-8gxj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-28347","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["django"],"critical":["CVSS 9.8 in a widely used technology"],"attention":null}