CWE
89
Advisory Published
CVE Published
Advisory Published
Updated

CVE-2022-34265: SQL Injection

First published: Thu Jun 30 2022(Updated: )

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.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
redhat/python-django<0:3.2.14-2.el8
0:3.2.14-2.el8
redhat/python-django<0:3.2.14-3.el8
0:3.2.14-3.el8
Djangoproject Django>=3.2<3.2.14
Djangoproject Django>=4.0<4.0.6
pip/django>=4.0<4.0.6
4.0.6
pip/django>=3.2<3.2.14
3.2.14
debian/1:1.10.7-2+deb9u17
debian/2:2.2.26-1
debian/2:3.2.13-1
debian/python-django<=1:1.11.29-1~deb10u1
1:1.11.29-1+deb10u10
2:2.2.28-1~deb11u2
3:3.2.19-1+deb12u1
3:3.2.21-1
3:4.2.8-1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is CVE-2022-34265?

    CVE-2022-34265 is a vulnerability in Django 3.2 before 3.2.14 and 4.0 before 4.0.6 that allows for SQL injection if untrusted data is used as a kind/lookup_name value in the Trunc() and Extract() database functions.

  • What is the severity of CVE-2022-34265?

    CVE-2022-34265 has a severity rating of 9.8 (Critical).

  • How does CVE-2022-34265 affect Django?

    CVE-2022-34265 affects Django 3.2 before 3.2.14 and 4.0 before 4.0.6.

  • How can I fix CVE-2022-34265?

    To fix CVE-2022-34265, update your Django installation to version 3.2.14 or 4.0.6 depending on your current version.

  • Where can I find more information about CVE-2022-34265?

    You can find more information about CVE-2022-34265 on the Debian Security Tracker, the Debian bug report, and the NIST vulnerability database.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203