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
“—” beside the score: it is equal to NVD's CVSS score.
This critical-severity CVE scores 9.8 under NVD CVSS v3. EPSS exploit probability: 19% (97th percentile of EPSS-scored CVEs). No GitHub Security Advisory CVSS is on record for this CVE.
- Public exploit or proof-of-concept code is available
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALmedium confidence
- EG Risk
- 60EG Risk 60/100
EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.
How it’s computed (value × EchelonGraph’s weight)Severity98% × 45%Impact severity (EG Severity): CVSS 9.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.Exploitation40% × 40%EchelonGraph's fixed weight for EG-KEV Tier 3 (Elevated): a constant, not a probability.Automatability0% × 15%CISA's BOD 26-04 default: no one has published Automatable for this CVE, and CISA treats it as “no” for a CVE not in KEV.SSVC (CISA's decision table, applied by EchelonGraph): Track at low, Track* at medium and Attend at high mission impact.Exploitation public PoC (exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 19%
- EPSS %ILE
- 97th
- KEV
- Not listed
What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)
The EG score (9.8): severity, escalated by confirmed exploitation. This CVE's 9.8 is its impact severity (EG Severity), not escalated.
- EG Severity
- 9.8 CRITICALCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.NVD CVSS v3 · CVSS v3.0 or v3.1
- EG Likelihood
- 19% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-10-22). FIRST's exploitation probability, not an EchelonGraph model.
- Confirmed exploitation
- None on record (CISA KEV, EG-KEV Tier 1)Reported apart from the likelihood: an observed fact, not a probability.
- EG Priority
- SSVC Track* at medium mission impactTrack at low, Track* at medium and Attend at high mission impact.CISA BOD 26-04: 14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.Each input and its source: the SSVC and BOD 26-04 blocks below.
SSVC (CISA's decision table, applied by EchelonGraph)Track at low, Track* at medium and Attend at high mission impact.
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation public PoC (exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table
BOD 26-04 (CISA's remediation timeline, Table 1)14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.
In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). Where an input reads “CISA's BOD 26-04 default”, no one has published it for this CVE, and CISA's implementation guidance says: “If “Automatable” and “Technical Impact” information items about a CVE ID are not available and the CVE ID is not in the KEV Catalog, CISA will treat its values as “no” and “total,” respectively, until CISA or a third party provides metadata about the CVE ID. CISA will always provide the Vulnrichment data for a CVE ID listed in the KEV Catalog.” Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it
Published
April 12, 2022
Last Modified
November 21, 2024
Advisory Details (9)
Auto-updated Oct 11, 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 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/[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/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 | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | python-django (1.8.7-1ubuntu5.15+esm5) @ xenial | 2026-10-22 | ubuntu |
| ubuntu | python-django-doc (2:2.2.24-1ubuntu1.4) @ impish | 2026-10-22 | 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 | Fix by version range | Dependents |
|---|---|---|---|
| python-django | 1:1.11.21-1 ... 1:1.11.29-1~deb10u1 (8 versions) |
| — |
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-django | 2:2.2.24-1, 2:2.2.25-1~deb11u1, 2:2.2.26-1~deb11u1 |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-django | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-django | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-django | — |
| — |
Debian:9(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| python-django | 1:1.10.7-2 ... 1:1.10.7-2+deb9u9 (16 versions) |
| — |
PyPI(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| django | 2.2 ... 4.0.3 (45 versions) |
| — |
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 22× in last 7d / 51× in last 30d)
Each row is a time one of our pipelines fetched, updated or re-scored this CVE. 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. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.
Showing the most recent 99 of 213 refreshes on record for this CVE.
A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 1 repeat row among the latest 100 is merged into the row it repeats. The 114 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-10-22 18:05 UTCEG score recompute
- 2026-10-22 18:05 UTCVendor advisory
- 2026-10-22 16:30 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-21 19:47 UTCEG score recompute
- 2026-10-21 19:47 UTCVendor advisory
- 2026-10-21 16:28 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-20 21:41 UTCEG score recompute
- 2026-10-20 21:41 UTCVendor advisory
- 2026-10-20 16:29 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-19 23:32 UTCEG score recompute
- 2026-10-19 23:32 UTCVendor advisory
- 2026-10-19 16:28 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-18 22:55 UTCEG score recompute
- 2026-10-18 22:55 UTCVendor advisory
- 2026-10-18 16:28 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-18 08:38 UTCEG score recompute
- 2026-10-18 00:09 UTCEG score recompute
- 2026-10-18 00:09 UTCVendor advisory
- 2026-10-17 16:29 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-17 01:54 UTCEG score recompute
- 2026-10-17 01:54 UTCVendor advisory
- 2026-10-16 16:34 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-16 02:16 UTCEG score recompute
- 2026-10-16 02:16 UTCVendor advisory
- 2026-10-15 16:28 UTCEPSS rescoreEPSS 19% · 97th percentile
Show 74 moreShow fewer
- 2026-10-14 22:11 UTCEG score recompute
- 2026-10-14 22:11 UTCVendor advisory
- 2026-10-14 16:29 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-13 17:50 UTCEG score recompute
- 2026-10-13 17:50 UTCVendor advisory
- 2026-10-13 16:29 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-12 18:44 UTCEG score recompute
- 2026-10-12 18:44 UTCVendor advisory
- 2026-10-11 23:21 UTCEG score recompute
- 2026-10-11 13:44 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-10 19:56 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-09 20:04 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-08 16:40 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-07 23:45 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-06 15:14 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-05 17:40 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-03 14:23 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-10-02 16:23 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-30 15:53 UTCEG score recompute
- 2026-09-30 15:00 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-29 15:16 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-27 13:42 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-26 15:54 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-26 00:22 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-25 01:54 UTCOSV refresh
- 2026-09-24 14:00 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-23 13:45 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-22 14:44 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-20 20:13 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-19 15:38 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-18 19:24 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-16 14:05 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-15 03:06 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-12 14:57 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-11 14:49 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-11 09:33 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-08 21:57 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-07 15:58 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-06 13:45 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-05 17:21 UTCOSV refresh
- 2026-09-05 15:25 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-04 13:57 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-04 05:04 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-02 14:09 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-09-01 13:51 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-30 19:14 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-30 01:19 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-28 21:38 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-27 14:22 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-26 14:43 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-25 13:46 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-24 14:13 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-23 00:16 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-21 23:46 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-20 22:52 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-19 17:01 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-19 03:59 UTCOSV refresh
- 2026-08-18 13:45 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-17 13:44 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-16 14:53 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-16 02:11 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-15 01:27 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-13 21:57 UTCEPSS rescoreEPSS 19% · 97th percentile
- 2026-08-12 13:48 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-11 13:38 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-09 13:44 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-08 16:34 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-07 16:24 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-06 13:44 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-05 19:15 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-04 15:07 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-04 10:35 UTCEPSS rescoreEPSS 19% · 96th percentile
- 2026-08-03 23:27 UTCOSV refresh
- 2026-08-03 10:33 UTCEPSS rescoreEPSS 19% · 96th percentile
Publicly available exploits
(2 references)Public exploit code is referenced for this CVE (2 GitHub PoCs). Defenders should treat patch urgency accordingly.
- GitHub PoCDeEpinGh0st/CVE-2022-28346Published Apr 26, 2022
Django QuerySet.annotate(), aggregate(), extra() SQL 注入
Open source ↗ - GitHub PoCYouGina/CVE-2022-28346Published Apr 25, 2022
SQL injection in QuerySet.annotate(), aggregate(), and extra()
Open source ↗
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:9:python-django
- CVE-2020-7471EG 9.8EPSS p99CRITICAL
- CVE-2019-19844EG 9.8EPSS p99CRITICAL
- CVE-2019-14234EG 9.8EPSS p99CRITICAL
- CVE-2022-23833NVD 7.5EG 8.0EPSS p99HIGH
- CVE-2021-33571EG 7.5EPSS p93HIGH
- CVE-2021-31542EG 7.5EPSS p93HIGH
- CVE-2019-14235EG 7.5HIGH
- CVE-2019-14233EG 7.5HIGH
- CVE-2019-14232EG 7.5HIGH
- CVE-2022-22818EG 6.1MEDIUM
Same vendor
10 shownredhat:RHSA-2022:5498 · ubuntu:USN-5373-1
Same CWE
10 shownCWE-89
Frequently asked(5)
What is CVE-2022-28346?
When was the CVE record for CVE-2022-28346 published?
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.