CVE-2022-28347: SQL Injection

Published Apr 6, 2022
·
Updated

QuerySet.explain() method was subject to SQL injection in option names, using a suitably crafted dictionary, with dictionary expansion, as the options argument.

This issue has High severity, according to the Django security policy [1].

Other sources

A flaw was found in the Django package, leading to a SQL injection. This flaw allows an attacker using a crafted dictionary containing malicious SQL queries to compromise the database completely.

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.

GitHub

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.

Affected Software

17 affected componentsFixes available
redhat/automation-controller<0:4.1.2-2.el8a
0:4.1.2-2.el8a
redhat/python-django<0:3.2.13-1.el8
0:3.2.13-1.el8
redhat/python3-django<0:2.2.28-1.el7
0:2.2.28-1.el7
redhat/python3-django<0:2.2.28-1.el8
0:2.2.28-1.el8
redhat/python-django<0:3.2.13-2.el8
0:3.2.13-2.el8
redhat/python-pulpcore<0:3.17.6-3.el8
0:3.17.6-3.el8
debian/python-django
1:1.11.29-1~deb10u11:1.11.29-1+deb10u102:2.2.28-1~deb11u23:3.2.19-1+deb12u13:3.2.21-13:4.2.8-1
redhat/Django<4.0.4
4.0.4
redhat/Django<3.2.13
3.2.13
redhat/Django<2.2.28
2.2.28
pip/Django>=4.0<4.0.4
4.0.4
pip/Django>=3.2<3.2.13
3.2.13
pip/Django>=2.2<2.2.28
2.2.28
djangoproject Django>=2.2<2.2.28
djangoproject Django>=3.2<3.2.13
djangoproject Django>=4.0<4.0.4
Debian Debian Linux=11.0

Event History

Apr 6, 2022
Data Sourced
via Red Hat·11:12 AM
DescriptionSeverityAffected Software
Apr 11, 2022
CVE Published
08:00 AM
Apr 12, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Apr 13, 2022
Advisory Published
via GitHub·12:00 AM

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-28347?

CVE-2022-28347 is a SQL injection vulnerability in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4.

2

How severe is CVE-2022-28347?

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

3

Which versions of Django are affected by CVE-2022-28347?

Django versions 2.2 to 2.2.28, 3.2 to 3.2.13, and 4.0 to 4.0.4 are affected by CVE-2022-28347.

4

How can I fix CVE-2022-28347?

To fix CVE-2022-28347, update Django to version 2.2.28, 3.2.13, or 4.0.4.

5

Where can I find more information about CVE-2022-28347?

You can find more information about CVE-2022-28347 at the following sources: [CVE website](https://www.cve.org/CVERecord?id=CVE-2022-28347), [NVD](https://nvd.nist.gov/vuln/detail/CVE-2022-28347), [Django security releases](https://www.djangoproject.com/weblog/2022/apr/11/security-releases/), [Red Hat Bugzilla](https://bugzilla.redhat.com/show_bug.cgi?id=2072459), and [Red Hat Advisory](https://access.redhat.com/errata/RHSA-2022:5702).

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203