Feed
9.8CRITICAL
CVE-2022-28346SQL Injection in Django
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 14.8% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 14.8%
- percentile 97%
- Fix
- Named by a source
- CVE published 12 Apr 2022
Reference
None of the "Needs attention" rules apply right now.
EPSS 14.8% (+15) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 2.2.28 / 3.2.13 / 4.0.4 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/2044dac5c6968441be6f534c4139bcf48c5c7e48
- Commit / pull request: https://github.com/django/django/commit/2c09e68ec911919360d5f8502cefc312f9e03c5d
- Commit / pull request: https://github.com/django/django/commit/800828887a0509ad1162d6d407e94d8de7eafc60
- Commit / pull request: https://github.com/django/django/commit/93cae5cb2f9a4ef1514cf1a41f714fef08005200
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 2.2, < 2.2.28Fixed in2.2.28OSV (PYSEC-2022-190)
- Affected>= 3.2, < 3.2.13Fixed in3.2.13OSV (PYSEC-2022-190)
- Affected>= 4.0, < 4.0.4Fixed in4.0.4OSV (PYSEC-2022-190)
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-2gwj-7jmv-h26r)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-89
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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`.
Update history
- 18 Nov 2025Exploitation more likely 5.0% → 12.5%
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-28346
- commit / pull requesthttps://github.com/django/django/commit/2044dac5c6968441be6f534c4139bcf48c5c7e48
- commit / pull requesthttps://github.com/django/django/commit/2c09e68ec911919360d5f8502cefc312f9e03c5d
- commit / pull requesthttps://github.com/django/django/commit/800828887a0509ad1162d6d407e94d8de7eafc60
- commit / pull requesthttps://github.com/django/django/commit/93cae5cb2f9a4ef1514cf1a41f714fef08005200
- otherhttps://docs.djangoproject.com/en/4.0/releases/security
- advisoryhttps://github.com/advisories/GHSA-2gwj-7jmv-h26r
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-190.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://lists.debian.org/debian-lts-announce/2022/04/msg00013.html
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI
- otherhttps://security.netapp.com/advisory/ntap-20220609-0002
- otherhttps://www.debian.org/security/2022/dsa-5254
- otherhttps://www.djangoproject.com/weblog/2022/apr/11/security-releases
- otherhttp://www.openwall.com/lists/oss-security/2022/04/11/1
- otherhttps://docs.djangoproject.com/en/4.0/releases/security/
- otherhttps://www.djangoproject.com/weblog/2022/apr/11/security-releases/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-2gwj-7jmv-h26r (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2022-190 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 13 min ago · osv 12 min ago · nvd 73 min ago · epss 12 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2022-28346, GHSA-2gwj-7jmv-h26r, PYSEC-2022-190