~ / search / GHSA-2gwj-7jmv-h26r

GHSA-2gwj-7jmv-h26r

SQL Injection in Django

Source: GitHub Advisory Database (reviewed) Critical CVE-2022-28346

Packages

EcosystemPackageAffectedFixed in
PyPI Django >= 2.2, < 2.2.28 2.2.28
PyPI Django >= 3.2, < 3.2.13 3.2.13
PyPI Django >= 4.0, < 4.0.4 4.0.4

Details

As written in the advisory (Markdown source, shown as plain text).

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`.

References

External links from the advisory. They lead to third-party sites.