Skip to main content
← All vulnerabilities
CVE-2022-34265PYSEC-2022-213BIT-DJANGO-2022-34265GHSA-P64X-8RXX-WF6Q

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.2.14, 4.0.6
5 proofs of concept on GitHub

Summary

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. The Trunc() and Extract() database functions are subject to SQL injection if untrusted data is used as a kind/lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected.

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 3.2 · fixed in 3.2.14; From 4.0 · fixed in 4.0.6

  • djangoPyPI

    From 3.2a1 · fixed in 3.2.14

  • djangoPyPI

    From 4.0a1 · fixed in 4.0.6

References 12

groups.google.com

docs.djangoproject.com

djangoproject.com

security.netapp.com

debian.org

lists.fedoraproject.org

GitHub · CyberCTF/vulhub-django-cve-2022-34265

GitHub · ZhaoQi99/CVE-2022-34265

GitHub · aeyesec/CVE-2022-34265

GitHub · lnwza0x0a/CTF_Django_CVE-2022-34265

GitHub · traumatising/CVE-2022-34265