CVE-2022-28346
Django: SQL injection in QuerySet.annotate(),aggregate() and extra()
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
4Exploited in Wild
-Decision
Descriptions
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.
Se ha detectado un problema en Django versiones 2.2 anteriores a 2.2.28, 3.2 anteriores a 3.2.13 y 4.0 anteriores a 4.0.4. Los métodos QuerySet.annotate(), aggregate() y extra() están sujetos a inyección SQL en los alias de columna por medio de un diccionario diseñado (con expansión de diccionario) como los **kwargs pasados
A flaw was found in the Django package, which leads to a SQL injection. This flaw allows an attacker using a crafted dictionary containing malicious SQL queries to compromise the database completely.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-04-02 CVE Reserved
- 2022-04-11 CVE Published
- 2022-04-25 First Exploit
- 2024-08-03 CVE Updated
- 2024-11-16 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CAPEC
References (15)
URL | Tag | Source |
---|---|---|
https://groups.google.com/forum/#%21forum/django-announce | ||
https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html | Mailing List | |
https://security.netapp.com/advisory/ntap-20220609-0002 | Third Party Advisory |
URL | Date | SRC |
---|---|---|
https://github.com/DeEpinGh0st/CVE-2022-28346 | 2022-05-31 | |
https://github.com/YouGina/CVE-2022-28346 | 2022-04-25 | |
https://github.com/kamal-marouane/CVE-2022-28346 | 2024-01-19 | |
https://github.com/vincentinttsh/CVE-2022-28346 | 2022-05-15 |
URL | Date | SRC |
---|---|---|
http://www.openwall.com/lists/oss-security/2022/04/11/1 | 2023-11-07 | |
https://docs.djangoproject.com/en/4.0/releases/security | 2023-11-07 | |
https://www.djangoproject.com/weblog/2022/apr/11/security-releases | 2023-11-07 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Djangoproject Search vendor "Djangoproject" | Django Search vendor "Djangoproject" for product "Django" | >= 2.2 < 2.2.28 Search vendor "Djangoproject" for product "Django" and version " >= 2.2 < 2.2.28" | - |
Affected
| ||||||
Djangoproject Search vendor "Djangoproject" | Django Search vendor "Djangoproject" for product "Django" | >= 3.2 < 3.2.13 Search vendor "Djangoproject" for product "Django" and version " >= 3.2 < 3.2.13" | - |
Affected
| ||||||
Djangoproject Search vendor "Djangoproject" | Django Search vendor "Djangoproject" for product "Django" | >= 4.0 < 4.0.4 Search vendor "Djangoproject" for product "Django" and version " >= 4.0 < 4.0.4" | - |
Affected
| ||||||
Debian Search vendor "Debian" | Debian Linux Search vendor "Debian" for product "Debian Linux" | 9.0 Search vendor "Debian" for product "Debian Linux" and version "9.0" | - |
Affected
| ||||||
Debian Search vendor "Debian" | Debian Linux Search vendor "Debian" for product "Debian Linux" | 11.0 Search vendor "Debian" for product "Debian Linux" and version "11.0" | - |
Affected
|