Skip to main content
← All vulnerabilities
CVE-2022-28346GHSA-2GWJ-7JMV-H26RBIT-DJANGO-2022-28346PYSEC-2022-190

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.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.28, 3.2.13, 4.0.4
4 proofs of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated
  3. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a n/a

    Version range not reported

  • djangoPyPI

    From 2.2 · fixed in 2.2.28

  • djangoPyPI

    From 3.2 · fixed in 3.2.13

  • djangoPyPI

    From 4.0 · fixed in 4.0.4

  • djangoPyPI

    From 4.0 · fixed in 4.0.4; From 3.2 · fixed in 3.2.13; From 2.2 · fixed in 2.2.28

References 13

groups.google.com

docs.djangoproject.com

openwall.com

djangoproject.com

lists.debian.org

security.netapp.com

debian.org

lists.fedoraproject.org

GitHub · DeEpinGh0st/CVE-2022-28346

GitHub · YouGina/CVE-2022-28346

GitHub · kamal-marouane/CVE-2022-28346

GitHub · vincentinttsh/CVE-2022-28346