9.8
CRITICAL CVSS 3.1
CVE-2022-28347
Django QuerySet SQL Injection Vulnerability
Description

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.

INFO

Published Date :

April 12, 2022, 5:15 a.m.

Last Modified :

Nov. 21, 2024, 6:57 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2022-28347 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Debian debian_linux
1 Djangoproject django
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 HIGH [email protected]
CVSS 3.1 CRITICAL [email protected]
Solution
To address the Django SQL injection vulnerability, update the affected packages.
  • Update Django to the latest patched version.
  • Upgrade the python-django packages.
Public PoC/Exploit Available at Github

CVE-2022-28347 has a 5 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-28347 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

A command line tool and simple web app to resolve project dependencies from 'requirements.txt' or 'package.json' and identify known vulnerabilities (CVEs) by querying OSV.dev API and flag unmaintained packages.

Python HTML

Updated: 4 days, 2 hours ago
0 stars 0 fork 0 watcher
Born at : Aug. 25, 2025, 5:31 a.m. This repo has been linked 15 different CVEs too.

None

Dockerfile Python

Updated: 5 months, 1 week ago
0 stars 0 fork 0 watcher
Born at : March 22, 2025, 9:01 a.m. This repo has been linked 2 different CVEs too.

None

Updated: 2 years, 1 month ago
0 stars 0 fork 0 watcher
Born at : July 11, 2023, 6:45 a.m. This repo has been linked 3 different CVEs too.

None

Python HTML

Updated: 1 month, 1 week ago
2 stars 1 fork 1 watcher
Born at : June 17, 2023, 10:32 a.m. This repo has been linked 7 different CVEs too.

None

Dockerfile Python

Updated: 3 years, 2 months ago
2 stars 0 fork 0 watcher
Born at : May 19, 2022, 5:06 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-28347 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-28347 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2022/04/11/1
    Added Reference https://docs.djangoproject.com/en/4.0/releases/security/
    Added Reference https://groups.google.com/forum/#%21forum/django-announce
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
    Added Reference https://www.debian.org/security/2022/dsa-5254
    Added Reference https://www.djangoproject.com/weblog/2022/apr/11/security-releases/
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference MITRE https://groups.google.com/forum/#%21forum/django-announce [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/ [No types assigned]
    Added Reference MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/ [No types assigned]
    Removed Reference MITRE https://groups.google.com/forum/#!forum/django-announce
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
    Removed Reference MITRE https://lists.fedoraproject.org/archives/list/[email protected]/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
  • CVE Modified by [email protected]

    Apr. 28, 2023

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/ [No Types Assigned]
  • CVE Modified by [email protected]

    Apr. 28, 2023

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/ [No Types Assigned]
  • Modified Analysis by [email protected]

    Nov. 08, 2022

    Action Type Old Value New Value
    Changed Reference Type https://www.debian.org/security/2022/dsa-5254 No Types Assigned https://www.debian.org/security/2022/dsa-5254 Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Oct. 16, 2022

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2022/dsa-5254 [No Types Assigned]
  • Initial Analysis by [email protected]

    Apr. 19, 2022

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:P/I:P/A:P)
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type http://www.openwall.com/lists/oss-security/2022/04/11/1 No Types Assigned http://www.openwall.com/lists/oss-security/2022/04/11/1 Mailing List, Patch, Third Party Advisory
    Changed Reference Type https://docs.djangoproject.com/en/4.0/releases/security/ No Types Assigned https://docs.djangoproject.com/en/4.0/releases/security/ Patch, Vendor Advisory
    Changed Reference Type https://groups.google.com/forum/#!forum/django-announce No Types Assigned https://groups.google.com/forum/#!forum/django-announce Mailing List, Third Party Advisory
    Changed Reference Type https://www.djangoproject.com/weblog/2022/apr/11/security-releases/ No Types Assigned https://www.djangoproject.com/weblog/2022/apr/11/security-releases/ Patch, Vendor Advisory
    Added CWE NIST CWE-89
    Added CPE Configuration OR *cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 2.2 up to (excluding) 2.2.28 *cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 3.2 up to (excluding) 3.2.13 *cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* versions from (including) 4.0 up to (excluding) 4.0.4
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 9.8
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 7.5
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.95 }} -0.03%

score

0.75367

percentile