CVE-2022-28347
SQL Injection in Django
9.8
CRITICAL
CVSS 3.1
EPSS 0.75%
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.
How to fix CVE-2022-28347
To remediate CVE-2022-28347, upgrade the affected package to a fixed version below.
- —upgrade to 2.2.28 or later
- —upgrade to 2:2.2.28-1~deb11u1 or later
- —upgrade to 2.2.28 or later
- —upgrade to 4.0.4 or later
Is CVE-2022-28347 being exploited?
Low — EPSS is 0.7%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 2.2.0, < 2.2.28, >= 3.2.0, < 3.2.13, >= 4.0.0, < 4.0.4
- from 0, < 2:2.2.28-1~deb11u1
- >= 2.2, < 2.2.28
- >= 4.0, < 4.0.4, >= 3.2, < 3.2.13, >= 2.2, < 2.2.28
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |