An issue was discovered in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before…
Priority MEDIUM 60CWE-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: 7 fixed, 6 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-89.
Summary
An issue was discovered in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. QuerySet.annotate(), aggregate(), and extra() methods are subject to SQL injection in column aliases via a crafted dictionary (with dictionary expansion) as the passed **kwargs.
Why it matters now
EPSS 0.18661 97th percentileScored 2026-11-07
Fix Partial Django (PyPI): 2.2.28, 3.2.13, 4.0.4Red Hat: 6 advisoriesRed Hat: 7 fixed, 6 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-2gwj-7jmv-h26r |
| — | Django (PyPI) | 3.2 to before 3.2.13 | 3.2.13 | Patch available | GHSA-2gwj-7jmv-h26r |
| — | Django (PyPI) | 4.0 to before 4.0.4 | 4.0.4 | Patch available | GHSA-2gwj-7jmv-h26r |
- — 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-2gwj-7jmv-h26r
- Django (PyPI) Vendor— Affected 3.2 to before 3.2.13 Fixed in 3.2.13 Patch available GHSA-2gwj-7jmv-h26r
- Django (PyPI) Vendor— Affected 4.0 to before 4.0.4 Fixed in 4.0.4 Patch available GHSA-2gwj-7jmv-h26r
CPE configurations NVD · 3
| 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:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Debian |
| 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:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
Remediation
- Fix · GHSA-2gwj-7jmv-h26r Django (PyPI) Fixed in 2.2.28 Advisory →
- Fix · GHSA-2gwj-7jmv-h26r Django (PyPI) Fixed in 3.2.13 Advisory →
- Fix · GHSA-2gwj-7jmv-h26r Django (PyPI) Fixed in 4.0.4 Advisory →
Red Hat 6 advisories
- RHSA-2022:8872 Released 2022-12-07 · Red Hat rating ImportantRed Hat OpenStack Platform 16.1.9 (python-django20) security update
- Red Hat OpenStack Platform 16.1 python-django20-2.0.13-18.el8ost, python-django20-bash-completion-2.0.13-18.el8ost, python3-django20-2.0.13-18.el8ost
- 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
Show 3 more Red Hat advisories
- 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
- 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
- RHSA-2022:5115 Released 2022-06-22 · Red Hat rating ModerateRed Hat OpenStack Platform 16.2 (python-django20) security update
- Red Hat OpenStack Platform 16.2 python-django20-2.0.13-17.el8ost
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 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 OpenStack Platform 16.1 | Fixed | RHSA-2022:8872 |
| Red Hat OpenStack Platform 16.2 | Fixed | RHSA-2022:5115 |
| Red Hat Satellite 6.11 for RHEL 8 | Fixed | RHSA-2022:5498 |
Not affected: 5 products
- RHUI 4 for RHEL 8
- Red Hat Ansible Automation Platform 2.1 for RHEL 8
- Red Hat OpenStack Platform 16.2
- 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-28346
- 2026-10-03 Alias added: GHSA-2gwj-7jmv-h26r
References
Patch 3
Advisory 7
Other 13
- https://groups.google.com/forum/#%21forum/django-announce
- https://github.com/django/django/commit/2044dac5c6968441be6f534c4139bcf48c5c7e48
- https://github.com/django/django/commit/2c09e68ec911919360d5f8502cefc312f9e03c5d
- https://github.com/django/django/commit/800828887a0509ad1162d6d407e94d8de7eafc60
- https://github.com/django/django/commit/93cae5cb2f9a4ef1514cf1a41f714fef08005200
- 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-190.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://security.netapp.com/advisory/ntap-20220609-0002
- https://www.djangoproject.com/weblog/2022/apr/11/security-releases
Sources
- CVE-2022-28346 · CVE Program
- CVE-2022-28346 · NVD
- FIRST EPSS
- GHSA-2gwj-7jmv-h26r · GitHub Advisory Database · CC BY 4.0
- CVE-2022-28346 · 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