# CVE-2022-28347: SQL Injection in Django

- 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): 2.94%, higher than 87% of CVEs (2026-12-02)
- Published: 2022-04-12T00:00:00.000Z
- Modified: 2026-09-08T08:46:37.826Z
- Also known as: GHSA-w24h-v9qh-8gxj, BIT-DJANGO-2022-28347, PYSEC-2022-191
- Weaknesses: CWE-89
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): from 2.2 before 2.2.28; from 3.2 before 3.2.13; from 4.0 before 4.0.4
- djangoproject django: from 2.2 before 2.2.28; from 3.2 before 3.2.13; from 4.0 before 4.0.4
- debian debian_linux: 11.0
- django (Bitnami): from 2.2.0 before 2.2.28; from 3.2.0 before 3.2.13; from 4.0.0 before 4.0.4

## Every score

- GitHub: 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`
- GitHub: CVSS:4.0 Critical `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`
- 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`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://groups.google.com/forum/#%21forum/django-announce> (web)
- <https://docs.djangoproject.com/en/4.0/releases/security/> (advisory, patch, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/04/11/1> (advisory, mailing-list, patch, third-party-advisory, web)
- <https://www.djangoproject.com/weblog/2022/apr/11/security-releases/> (advisory, article, patch, vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5254> (advisory, third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-28347> (advisory, web)
- <https://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402> (web)
- <https://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5> (web)
- <https://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81> (web)
- <https://github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72d> (web)
- <https://docs.djangoproject.com/en/4.0/releases/security> (web)
- <https://github.com/advisories/GHSA-w24h-v9qh-8gxj> (advisory)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-191.yaml> (web)
- <https://groups.google.com/forum/#!forum/django-announce> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI> (web)
- <https://www.djangoproject.com/weblog/2022/apr/11/security-releases> (web)

## Sources

- CVE List: [CVE-2022-28347](https://www.cve.org/CVERecord?id=CVE-2022-28347), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-w24h-v9qh-8gxj](https://github.com/advisories/GHSA-w24h-v9qh-8gxj), CC-BY-4.0, modified 2025-02-21
- NVD: [CVE-2022-28347](https://nvd.nist.gov/vuln/detail/CVE-2022-28347), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-191](https://osv.dev/vulnerability/PYSEC-2022-191), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-DJANGO-2022-28347](https://osv.dev/vulnerability/BIT-DJANGO-2022-28347), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-28347 · Whole record: https://cve.day/CVE-2022-28347.json · Rebuilt by cve.day 2026-11-25T22:58:10.547Z
