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.
Advisories
Source ID Title
Debian DLA Debian DLA DLA-2982-1 python-django security update
Debian DSA Debian DSA DSA-5254-1 python-django security update
EUVD EUVD EUVD-2022-0087 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.
Github GHSA Github GHSA GHSA-2gwj-7jmv-h26r SQL Injection in Django
Ubuntu USN Ubuntu USN USN-5373-1 Django vulnerabilities
Ubuntu USN Ubuntu USN USN-5373-2 Django vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-02-13T16:32:33.638Z

Reserved: 2022-04-02T00:00:00.000Z

Link: CVE-2022-28346

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2022-04-12T05:15:06.927

Modified: 2024-11-21T06:57:11.007

Link: CVE-2022-28346

cve-icon Redhat

Severity : Important

Publid Date: 2022-04-11T08:00:00Z

Links: CVE-2022-28346 - Bugzilla

cve-icon OpenCVE Enrichment

No data.