Vulnerability · Published Apr 12, 2022 · Assigned by mitre

CVE-2022-28346

Critical 9.8

In plain English

A critical-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 18.7% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)18.7%top 2.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-django3.2.13-r0ALPINE-CVE-2022-28346
Alpine:v3.21py3-django3.2.13-r0ALPINE-CVE-2022-28346
Alpine:v3.22py3-django3.2.13-r0ALPINE-CVE-2022-28346
Alpine:v3.23py3-django3.2.13-r0ALPINE-CVE-2022-28346
Alpine:v3.24py3-django3.2.13-r0ALPINE-CVE-2022-28346
Debian:12python-django2:3.2.13-1DEBIAN-CVE-2022-28346
Debian:13python-django2:3.2.13-1DEBIAN-CVE-2022-28346
Debian:14python-django2:3.2.13-1DEBIAN-CVE-2022-28346
PyPIdjango2.2.28GHSA-2gwj-7jmv-h26r
PyPIdjango3.2.13GHSA-2gwj-7jmv-h26r
PyPIdjango4.0.4GHSA-2gwj-7jmv-h26r
PyPIdjango2.2.28, 3.2.13, 4.0.4PYSEC-2022-190
Rocky Linux:8libdb0:5.3.28-42.el8_4RLSA-2022:5498

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References