SQL Injection in Django
Critical severity
GitHub Reviewed
Published
Apr 13, 2022
to the GitHub Advisory Database
•
Updated Sep 20, 2024
Package
Affected versions
>= 2.2, < 2.2.28
>= 3.2, < 3.2.13
>= 4.0, < 4.0.4
Patched versions
2.2.28
3.2.13
4.0.4
Description
Published by the National Vulnerability Database
Apr 12, 2022
Published to the GitHub Advisory Database
Apr 13, 2022
Reviewed
Apr 22, 2022
Last updated
Sep 20, 2024
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()
, andextra()
methods are subject to SQL injection in column aliases via a crafted dictionary (with dictionary expansion) as the passed**kwargs
.References