A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28…
Priority MEDIUM 47CWE-89Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 5 fixed, 8 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-89.
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.
Why it matters now
EPSS 0.02943 87th percentileScored 2026-11-07
Fix Partial Django (PyPI): 2.2.28, 3.2.13, 4.0.4Red Hat: 4 advisoriesRed Hat: 5 fixed, 8 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | Django (PyPI) | 2.2 to before 2.2.28 | 2.2.28 | Patch available | GHSA-w24h-v9qh-8gxj |
| — | Django (PyPI) | 3.2 to before 3.2.13 | 3.2.13 | Patch available | GHSA-w24h-v9qh-8gxj |
| — | Django (PyPI) | 4.0 to before 4.0.4 | 4.0.4 | Patch available | GHSA-w24h-v9qh-8gxj |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- Django (PyPI) Vendor— Affected 2.2 to before 2.2.28 Fixed in 2.2.28 Patch available GHSA-w24h-v9qh-8gxj
- Django (PyPI) Vendor— Affected 3.2 to before 3.2.13 Fixed in 3.2.13 Patch available GHSA-w24h-v9qh-8gxj
- Django (PyPI) Vendor— Affected 4.0 to before 4.0.4 Fixed in 4.0.4 Patch available GHSA-w24h-v9qh-8gxj
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 2.2 to before 2.2.28; 3.2 to before 3.2.13; 4.0 to before 4.0.4 | Vulnerable | djangoproject |
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 11.0 | Vulnerable | Debian |
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions 2.2 to before 2.2.28; 3.2 to before 3.2.13; 4.0 to before 4.0.4 Vulnerable ·djangoproject
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
Remediation
- Fix · GHSA-w24h-v9qh-8gxj Django (PyPI) Fixed in 2.2.28 Advisory →
- Fix · GHSA-w24h-v9qh-8gxj Django (PyPI) Fixed in 3.2.13 Advisory →
- Fix · GHSA-w24h-v9qh-8gxj Django (PyPI) Fixed in 4.0.4 Advisory →
Red Hat 4 advisories
- RHSA-2022:5703 Released 2022-07-25 · Red Hat rating ImportantRed Hat Ansible Automation Platform 1.2 security update
- Red Hat Automation Hub 4.2 for RHEL 7 python3-django-2.2.28-1.el7pc
- Red Hat Automation Hub 4.2 for RHEL 8 python3-django-2.2.28-1.el8pc
- RHSA-2022:5702 Released 2022-07-25 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.1.2 security and bug fix update
- Red Hat Ansible Automation Platform 2.1 for RHEL 8 automation-controller-4.1.2-2.el8ap, automation-controller-cli-4.1.2-2.el8ap, automation-controller-server-4.1.2-2.el8ap +4
- RHSA-2022:5602 Released 2022-07-19 · Red Hat rating ImportantRHUI 4.1.1 release - Security Fixes and Enhancement Update
- RHUI 4 for RHEL 8 python-django-3.2.13-2.el8ui, python-pulpcore-3.17.6-3.el8ui, python38-pulpcore-3.17.6-3.el8ui
Show 1 more Red Hat advisories
- RHSA-2022:5498 Released 2022-07-05 · Red Hat rating ModerateSatellite 6.11 Release
- Red Hat Satellite 6.11 for RHEL 7 candlepin-4.1.13-1.el7sat, foreman-3.1.1.21-2.el7sat, libsolv-0.7.22-1.el7pc +4
- Red Hat Satellite 6.11 for RHEL 8 candlepin-4.1.13-1.el8sat, foreman-3.1.1.21-2.el8sat, libsolv-0.7.22-1.el8pc +8
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ceph Storage 3 | Affected | No fix planned: Will not fix |
| Red Hat Discovery 1 | Affected | No fix yet |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix yet |
| Red Hat OpenStack Platform 16.1 | Affected | No fix yet |
| Red Hat OpenStack Platform 16.2 | Affected | No fix yet |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Storage 3 | Affected | No fix planned: Will not fix |
| Red Hat Update Infrastructure 4 for Cloud Providers | Affected | No fix yet |
| RHUI 4 for RHEL 8 | Fixed | RHSA-2022:5602 |
| Red Hat Ansible Automation Platform 2.1 for RHEL 8 | Fixed | RHSA-2022:5702 |
| Red Hat Automation Hub 4.2 for RHEL 7 | Fixed | RHSA-2022:5703 |
| Red Hat Automation Hub 4.2 for RHEL 8 | Fixed | RHSA-2022:5703 |
| Red Hat Satellite 6.11 for RHEL 8 | Fixed | RHSA-2022:5498 |
Not affected: 4 products
- RHUI 4 for RHEL 8
- Red Hat Ansible Automation Platform 2.1 for RHEL 8
- Red Hat Satellite 6.11 for RHEL 7
- Red Hat Satellite 6.11 for RHEL 8
Timeline
- 2026-10-02 Threatist record created from CVE-2022-28347
- 2026-10-03 Alias added: GHSA-w24h-v9qh-8gxj
References
Patch 3
Advisory 5
Other 12
- https://groups.google.com/forum/#%21forum/django-announce
- https://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402
- https://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5
- https://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81
- https://github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72d
- https://docs.djangoproject.com/en/4.0/releases/security
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-191.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://lists.fedoraproject.org/archives/list/[email protected]/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK
- https://lists.fedoraproject.org/archives/list/[email protected]/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI
- https://www.djangoproject.com/weblog/2022/apr/11/security-releases
Sources
- CVE-2022-28347 · CVE Program
- CVE-2022-28347 · NVD
- FIRST EPSS
- GHSA-w24h-v9qh-8gxj · GitHub Advisory Database · CC BY 4.0
- CVE-2022-28347 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences