CVE-2022-28346 — SQL Injection in django — CVE Details
SQL Injection in Django
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.97%). Schedule for your next planned update.
Summary
Advisory Timeline
- First published April 13, 2022 (1643 days ago).
- Last revised February 21, 2025 — 1045 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "django>=3.2.13"
pip install "django>=4.0.4"
pip install "django>=2.2.28"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: pypi (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-28346ADVISORY
- https://github.com/django/django/commit/2044dac5c6968441be6f534c4139bcf48c5c7e48WEB
- https://github.com/django/django/commit/2c09e68ec911919360d5f8502cefc312f9e03c5dWEB
- https://github.com/django/django/commit/800828887a0509ad1162d6d407e94d8de7eafc60WEB
- https://github.com/django/django/commit/93cae5cb2f9a4ef1514cf1a41f714fef08005200WEB
- https://docs.djangoproject.com/en/4.0/releases/securityWEB
- https://github.com/advisories/GHSA-2gwj-7jmv-h26rADVISORY
- https://github.com/django/djangoPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-190.yamlWEB
- https://groups.google.com/forum/#!forum/django-announceWEB
- https://lists.debian.org/debian-lts-announce/2022/04/msg00013.htmlWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IKWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQIWEB
- https://security.netapp.com/advisory/ntap-20220609-0002WEB
- https://www.debian.org/security/2022/dsa-5254WEB
- https://www.djangoproject.com/weblog/2022/apr/11/security-releasesWEB
- https://www.openwall.com/lists/oss-security/2022/04/11/1WEB
Frequently Asked Questions
- What is CVE-2022-28346?
- SQL Injection in Django This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2022-28346?
- CVE-2022-28346 affects django. It has a 2.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-28346 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
This places it in the top quartile of EPSS-scored vulnerabilities — 83.3% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2021-35042CRITICAL
SQL Injection in Django
- CVE-2023-24580HIGH
Resource exhaustion in Django
- CVE-2021-45115HIGH
Denial-of-service in Django
- CVE-2021-33203MEDIUM
Path Traversal in Django
- CVE-2020-24583
- CVE-2020-24584
- CVE-2021-35042
- CVE-2021-44420
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies