SQL Injection in Djangoproject Django

CVE-2022-28346

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.

Vulnerability class: SQL Injection

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.187, 97.3th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

7 public repositories with exploit or proof-of-concept code for this CVE:

Also mentioned in 23 other repositories (20142995/nuclei-templates, ARPSyndicate/cvemon, carlosatFroom/vuln_scanner_python, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References