Skip to main content
← All vulnerabilities
CVE-2022-28347GHSA-W24H-V9QH-8GXJBIT-DJANGO-2022-28347PYSEC-2022-191

A SQL injection issue was discovered in QuerySet.explain() 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
None on Exploit-DB, Metasploit or GitHub

Summary

A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the **options argument, and placing the injection payload in an option name.

Timeline

  1. CVE published
  2. Record last updated

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 7

groups.google.com

docs.djangoproject.com

openwall.com

djangoproject.com

debian.org

lists.fedoraproject.org