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.
CVE-2022-28346
This critical-severity CVE scores 9.8 under NVD CVSS v3. EPSS exploit probability: 18.5%, top 3% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EG Risk
- 65(Track*)EG Risk 65/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation40% × 40%Automatability30% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 19%
- EPSS %ILE
- 97%
- KEV
- Not listed
Published
April 12, 2022
Last Modified
November 21, 2024
Advisory Details (9)
Auto-updated Sep 4, 2026oss-security - Django: CVE-2022-28346: Potential SQL injection in ``QuerySet.annotate()``, ``aggregate()``, and ``extra()``
http://www.openwall.com/lists/oss-security/2022/04/11/1Django security releases issued: 4.0.4, 3.2.13, and 2.2.28 | Weblog | Django
https://www.djangoproject.com/weblog/2022/apr/11/security-releases/[SECURITY] [DSA 5254-1] python-django security update
https://www.debian.org/security/2022/dsa-5254[SECURITY] Fedora 37 Update: python-django-4.0.10-1.fc37 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/[SECURITY] [DLA 2982-1] python-django security update
https://lists.debian.org/debian-lts-announce/2022/04/msg00013.htmlArchive of security issues | Django documentation | Django
https://docs.djangoproject.com/en/4.0/releases/security/[SECURITY] Fedora 38 Update: python-django-4.0.10-1.fc38 - package-announce - Fedora mailing-lists
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/Vendor Advisories for CVE-2022-28346(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(7)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python-django-doc (2:2.2.24-1ubuntu1.4) @ impish | 2026-05-26 | ubuntu |
| ubuntu | python-django (1.8.7-1ubuntu5.15+esm5) @ xenial | 2026-05-26 | ubuntu |
| redhat | python-django20-0:2.0.13-18.el8ost | 2022-12-07 | redhat |
| redhat | python-django-0:3.2.13-1.el8pc | 2022-07-25 | redhat |
| redhat | python3-django-0:2.2.28-1.el8pc | 2022-07-25 | redhat |
| redhat | python-pulpcore-0:3.17.6-3.el8ui | 2022-07-19 | redhat |
| redhat | python-django20-0:2.0.13-17.el8ost | 2022-06-22 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(7 across 7 ecosystems)
Debian:10(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python-django | 1:1.11.21-1 ... 1:1.11.29-1~deb10u1 (8 versions) | 1:1.11.29-1+deb10u3 | — |
Debian:11(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python-django | 2:2.2.24-1, 2:2.2.25-1~deb11u1, 2:2.2.26-1~deb11u1 | 2:2.2.28-1~deb11u1 | — |
Debian:12(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python-django | — | 2:3.2.13-1 | — |
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python-django | — | 2:3.2.13-1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python-django | — | 2:3.2.13-1 | — |
Debian:9(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| python-django | 1:1.10.7-2 ... 1:1.10.7-2+deb9u9 (16 versions) | 1:1.10.7-2+deb9u16 | — |
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| django | 2.2 ... 4.0.3 (45 versions) | 2.2.28 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(7)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2022:5115IMPORTANT2022-04-11
RHSA-2022:5115 — Important
- Red HatRHSA-2022:5602IMPORTANT2022-04-11
RHSA-2022:5602 — Important
- Red HatRHSA-2022:5702IMPORTANT2022-04-11
RHSA-2022:5702 — Important
- Red HatRHSA-2022:5703IMPORTANT2022-04-11
RHSA-2022:5703 — Important
- Red HatRHSA-2022:8872IMPORTANT2022-04-11
RHSA-2022:8872 — Important
- UbuntuUSN-5373-1HIGH
Django vulnerabilities
- UbuntuUSN-5373-2HIGH
Django vulnerabilities
Data Freshness Timeline
(refreshed 9× in last 7d / 30× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 152 total refreshes for this CVE.
- 2026-09-07 15:58 UTCEPSS rescore
- 2026-09-06 13:45 UTCEPSS rescore
- 2026-09-05 17:21 UTCOSV refresh
- 2026-09-05 15:25 UTCEPSS rescore
- 2026-09-04 13:57 UTCEPSS rescore
- 2026-09-04 13:57 UTCEPSS rescore
- 2026-09-04 05:04 UTCEPSS rescore
- 2026-09-02 14:09 UTCEPSS rescore
- 2026-09-01 13:51 UTCEPSS rescore
- 2026-08-30 19:14 UTCEPSS rescore
- 2026-08-30 01:19 UTCEPSS rescore
- 2026-08-28 21:38 UTCEPSS rescore
- 2026-08-27 14:22 UTCEPSS rescore
- 2026-08-26 14:43 UTCEPSS rescore
- 2026-08-25 13:46 UTCEPSS rescore
- 2026-08-24 14:13 UTCEPSS rescore
- 2026-08-23 00:16 UTCEPSS rescore
- 2026-08-21 23:46 UTCEPSS rescore
- 2026-08-20 22:52 UTCEPSS rescore
- 2026-08-19 17:01 UTCEPSS rescore
- 2026-08-19 03:59 UTCOSV refresh
- 2026-08-18 13:45 UTCEPSS rescore
- 2026-08-17 13:44 UTCEPSS rescore
- 2026-08-16 14:53 UTCEPSS rescore
- 2026-08-16 02:11 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-15 01:27 UTCEPSS rescore
- 2026-08-13 21:57 UTCEPSS rescore
- 2026-08-12 13:48 UTCEPSS rescore
- 2026-08-11 13:38 UTCEPSS rescore
- 2026-08-09 13:44 UTCEPSS rescore
- 2026-08-08 16:34 UTCEPSS rescore
- 2026-08-07 16:24 UTCEPSS rescore
- 2026-08-06 13:44 UTCEPSS rescore
- 2026-08-05 19:15 UTCEPSS rescore
- 2026-08-04 15:07 UTCEPSS rescore
- 2026-08-04 10:35 UTCEPSS rescore
- 2026-08-03 23:27 UTCOSV refresh
- 2026-08-03 10:33 UTCEPSS rescore
- 2026-08-01 04:13 UTCEPSS rescore
- 2026-07-30 16:25 UTCEPSS rescore
- 2026-07-28 15:33 UTCEPSS rescore
- 2026-07-26 14:52 UTCEPSS rescore
- 2026-07-25 14:15 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 14:16 UTCEPSS rescore
- 2026-07-23 02:10 UTCEG score recompute
- 2026-07-22 22:57 UTCEG score recompute
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-22 14:06 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-21 15:22 UTCEPSS rescore
- 2026-07-20 17:05 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-19 02:27 UTCEPSS rescore
- 2026-07-18 10:03 UTCEPSS rescore
- 2026-07-18 10:02 UTCEPSS rescore
- 2026-07-17 16:59 UTCOSV refresh
- 2026-07-16 17:00 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 16:56 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-15 01:58 UTCEPSS rescore
- 2026-07-13 22:27 UTCEPSS rescore
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-06 16:25 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-30 23:20 UTCEPSS rescore
- 2026-06-29 15:02 UTCOSV refresh
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 14:55 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
Publicly available exploits
(2 references)Working exploit code is in the public domain (2 GitHub PoCs). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCDeEpinGh0st/CVE-2022-28346First seen Apr 26, 2022
Django QuerySet.annotate(), aggregate(), extra() SQL 注入
Open source ↗ - GitHub PoCYouGina/CVE-2022-28346First seen Apr 25, 2022
SQL injection in QuerySet.annotate(), aggregate(), and extra()
Open source ↗
Frequently asked(5)
What is CVE-2022-28346?
When was CVE-2022-28346 disclosed?
Is CVE-2022-28346 actively exploited?
What is the CVSS score of CVE-2022-28346?
How do I remediate CVE-2022-28346?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-28346
Is Your Infrastructure Affected by CVE-2022-28346?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.